Skip to content

sm#317: event stream contract + schema version pinning for interactive CLI#2

Merged
rajeshgoli merged 4 commits intomainfrom
codex/317-event-stream-contract
Mar 1, 2026
Merged

sm#317: event stream contract + schema version pinning for interactive CLI#2
rajeshgoli merged 4 commits intomainfrom
codex/317-event-stream-contract

Conversation

@rajeshgoli
Copy link
Copy Markdown
Owner

Implements ticket A from session-manager epic openai#316 (session-manager#317).

Changes

  • add interactive CLI flags: --event-stream and --event-schema-version
  • support schema versions 1 and 2 with explicit validation and pinning
  • emit contract JSONL records with required fields (schema_version, ts, session_id, event_type, payload)
  • add current-schema additive metadata (seq, session_epoch) in v2
  • preserve legacy env-driven session logging path for backward compatibility
  • add committed schema fixtures for previous/current compatibility
  • document compatibility policy and contract in docs/event-stream-contract.md

Fixtures

  • codex-rs/tui/tests/fixtures/event_stream/v1_turn_started.json
  • codex-rs/tui/tests/fixtures/event_stream/v2_turn_started.json

@rajeshgoli
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf4056915b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/session_log.rs Outdated
Comment thread codex-rs/tui/src/session_log.rs Outdated
Comment thread codex-rs/tui/src/session_log.rs
@rajeshgoli
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0f8ccc87c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/lib.rs Outdated
Comment thread codex-rs/tui/src/session_log.rs Outdated
@rajeshgoli
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04eb16d96c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/lib.rs
@rajeshgoli rajeshgoli merged commit 1f0d433 into main Mar 1, 2026
7 of 32 checks passed
@rajeshgoli rajeshgoli deleted the codex/317-event-stream-contract branch March 1, 2026 03:25
rajeshgoli added a commit that referenced this pull request Mar 5, 2026
…e CLI (#2)

* feat: add interactive event stream contract and schema pinning

* fix: address codex review feedback for event stream contract

* fix: restore terminal on logger init failure and guard stdout stream mode

* fix: make stdio event stream mode reachable without TUI output corruption
rajeshgoli pushed a commit that referenced this pull request Mar 25, 2026
- Remove numeric prefixes for disabled rows in shared list rendering.
These numbers are shortcuts, Ex: Pressing "2" selects option `#2`.
Disabled items can not be selected, so keeping numbers on these items is
misleading.
- Apply the same behavior in both tui and tui_app_server.
- Update affected snapshots for apps/plugins loading and plugin detail
rows.

_**This is a global change.**_

Before:
<img width="1680" height="488" alt="image"
src="https://github.com/user-attachments/assets/4bcf94ad-285f-48d3-a235-a85b58ee58e2"
/>

After:
<img width="1706" height="484" alt="image"
src="https://github.com/user-attachments/assets/76bb6107-a562-42fe-ae94-29440447ca77"
/>
rajeshgoli added a commit that referenced this pull request Mar 25, 2026
…e CLI (#2)

* feat: add interactive event stream contract and schema pinning

* fix: address codex review feedback for event stream contract

* fix: restore terminal on logger init failure and guard stdout stream mode

* fix: make stdio event stream mode reachable without TUI output corruption
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.

1 participant