Skip to content

Conversation

@karlovsek
Copy link

Add configurable toggle to enable/disable cc_sessions

Enable/disable all cc_sessions hooks except statusline. Provides early exit checks across all hook files and
exposes toggle through sessions config API commands.

Update statusline to show disabled state when sessions_enabled is false

When sessions_enabled feature flag is disabled, statusline now displays:

  • Simplified "cc-sessions disabled" message instead of mode/task info
  • Preserves context usage progress bar and git branch information
  • Hides Discussion/Implementation mode, tasks, and todo counts

Document sessions_enabled feature toggle

Added documentation for the sessions_enabled feature flag including command syntax, behavior when disabled, and use cases for toggling the framework on/off.

- Add Development Setup section with local installation instructions
- Add build commands for Python (python -m build) and JavaScript (npm pack)
- Add Testing section documenting manual testing workflow
- Remove references to non-existent files (scripts/prepare-release.py, check-version-sync.sh, install.sh)
- Clarify Related Documentation to reflect actual repository structure
- Update Update Detection System to remove references to non-existent scripts
Add configurable toggle to enable/disable all cc-sessions hooks except
statusline. Provides early exit checks across all hook files and
exposes toggle through sessions config API commands.
When sessions_enabled feature flag is disabled, statusline now displays:
- Simplified "cc-sessions disabled" message instead of mode/task info
- Preserves context usage progress bar and git branch information
- Hides Discussion/Implementation mode, tasks, and todo counts

Maintains feature parity between Python and JavaScript implementations.
Added documentation for the sessions_enabled feature flag including command syntax, behavior when disabled, and use cases for toggling the framework on/off.
@satoastshi
Copy link
Contributor

/sessions state mode off

@karlovsek
Copy link
Author

/sessions state mode off

Thanks. Obviously didn't know about this 😅.

Anyway, an idea from this PR, to add some status to the statusline when bypass mode is active?

Also, I think that documentation could be improved. Running /sessions help, /sessions state, ... is slow in CC.
I know those commands can be run directly from console as sessions/bin/sessions status, but if I'm not mistaken this is not documented?

@satoastshi
Copy link
Contributor

Yes - valid points across the board. Will do some inlining of your recommendations and credit you for what we include on next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants