Skip to content

tui: enforce replay-only event restrictions - #828

Merged
GraciousGazelles merged 7 commits into
mainfrom
successor/pr651-replay-only-event-restrictions-20260908
Sep 8, 2026
Merged

GraciousGazelles merged 7 commits into
mainfrom
successor/pr651-replay-only-event-restrictions-20260908

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • enforce replay-only restrictions at TUI event dispatch boundaries
  • preserve navigation and explicit live-thread actions while rejecting replay-only mutations
  • prevent queued plugin and hook configuration retries from mutating configuration after replay completion
  • add focused regression coverage for configuration persistence, targeted thread routing, and queued completion handling

This PR is a fresh successor implementing the applicable portion of the work from #651. The original PR remains open for its separate context and history.

Validation

  • Targeted formatting and whitespace checks completed.
  • Please use the repository's hosted TUI checks for build and test validation; no local build or test was run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-08T12:14:47.593850Z b9b01ff PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces logic to prevent mutations on replay-only threads within the TUI application, including helper methods to identify mutating events and targeted threads, along with corresponding unit tests. The review feedback highlights three key issues: a compilation error in the test suite due to an incorrect function call signature, a UX issue where background events on inactive replay-only threads trigger confusing error messages on the active thread, and an issue where background configuration reloads are incorrectly classified as mutating and rejected.

Comment thread codex-rs/tui/src/app/event_dispatch.rs Resolved
Comment thread codex-rs/tui/src/app/event_dispatch.rs Resolved
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit 6bc8fb1 Sep 8, 2026
94 checks passed
@GraciousGazelles
GraciousGazelles deleted the successor/pr651-replay-only-event-restrictions-20260908 branch September 8, 2026 14:30
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