Skip to content

Show subagent sender and safe mailbox content after native wait wake - #812

Merged
GraciousGazelles merged 34 commits into
mainfrom
repair/w13867-mailbox-visibility
Sep 8, 2026
Merged

GraciousGazelles merged 34 commits into
mainfrom
repair/w13867-mailbox-visibility

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • Surface bounded, safe mailbox notifications from native wait_agent wakes with the sending agent path and a short plaintext preview when available.
  • Keep encrypted payloads opaque and label them unavailable; strip internal classification metadata before model replay.
  • Preserve truthful mailbox-versus-terminal completion state in app-server and TUI lifecycle items, including empty-target waits.
  • Use bounded, enqueue-stable sequence identities for notification snapshots without changing model mailbox delivery.

Validation

  • git diff --check passed on the frozen candidate.
  • Formatting-only checks were run locally; build, test, and compile validation are delegated to hosted CI.

Frozen candidate: 12b3dca453bf360c84ceea12e8fe8f1974a18f94.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 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-07T08:32:43.531504Z 12b3dca 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 a mailbox notification system to track and report safe, bounded notifications observed during agent waiting periods. It adds new data structures like AgentNotificationSummary, AgentNotificationContent, and AgentCommunicationOrigin across the protocol and core modules, updates the InputQueue to track communication sequences, and integrates these notifications into the TUI for improved visibility. The review feedback identified a logic bug in the sequence number generation due to lazy iterator usage, a performance optimization for string character counting, and a necessary adjustment to the serialization tag for the AgentNotificationContent enum to ensure consistency with the v2 protocol.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit 9a51fd5 Sep 8, 2026
104 checks passed
@GraciousGazelles
GraciousGazelles deleted the repair/w13867-mailbox-visibility branch September 8, 2026 01:55
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