Skip to content

feat: add --session-read-only flag to view sessions without sending messages#3026

Merged
gtardif merged 1 commit into
docker:mainfrom
gtardif:lock_session_opt
Jun 8, 2026
Merged

feat: add --session-read-only flag to view sessions without sending messages#3026
gtardif merged 1 commit into
docker:mainfrom
gtardif:lock_session_opt

Conversation

@gtardif

@gtardif gtardif commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

When running with --session-read-only, the TUI opens in read-only mode:

  • The editor shows a "Session is read-only" placeholder
  • Attempting to send a message shows a warning notification
  • Slash commands (e.g. /exit, /compact) still work
  • File attachments are also blocked
  • Using --exec with --session-read-only returns an error

This is useful for reviewing past session conversations loaded from --session-db without accidentally sending new messages to the LLM.

…essages

When running with --session-read-only, the TUI opens in read-only mode:
- The editor shows a "Session is read-only" placeholder
- Attempting to send a message shows a warning notification
- Slash commands (e.g. /exit, /compact) still work
- File attachments are also blocked
- Using --exec with --session-read-only returns an error

This is useful for reviewing past session conversations loaded from
--session-db without accidentally sending new messages to the LLM.
@gtardif gtardif requested a review from a team as a code owner June 8, 2026 10:04
@gtardif gtardif merged commit ac317d7 into docker:main Jun 8, 2026
8 checks passed
@docker-agent

Copy link
Copy Markdown

PR Review Failed — The review agent encountered an error and could not complete the review. View logs.

aheritier added a commit that referenced this pull request Jun 9, 2026
Add --session-read-only to the CLI reference flags table and add
usage examples in both the CLI reference and TUI feature docs.

Closes #3026
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.

3 participants