Repository navigation
feat: show Codex transcripts in the sidebar - #104437
Conversation
|
Land-ready proof:
Known proof gap: the mock browser screenshots/video were captured and inspected, but this workstation's Crabbox artifact broker is not configured, so they were not uploaded. Signed multi-Mac fleet validation follows the merge because the deployable app must be built from landed |
8a923b2 to
ac28895
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a923b2451
ℹ️ 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".
| if (this.connected && this.client && this.loadedClient !== this.client) { | ||
| if (this.loadedClient) { | ||
| this.hydrationToken = null; | ||
| this.clearRefreshTimer(); | ||
| stopCodexSessionsPolling(this.controllerHost); | ||
| sessionsState.requestUpdate = () => { | ||
| this.revision += 1; | ||
| }; | ||
| } | ||
| this.loadedClient = this.client; | ||
| this.beginRefresh(); |
There was a problem hiding this comment.
Clear stale Codex sessions when the Gateway client changes
When the Control UI switches from one connected Gateway client to another, this branch starts the new refresh without clearing the controller state for the previous client. If the replacement Gateway is slow or its first codex.sessions.list fails, render() continues showing the old Gateway's Codex session titles/hosts under the new connection, leaking stale private session metadata across Gateway contexts. The disconnect path already calls stopCodexSessionsPolling, but the connected client-replacement path needs the same teardown before beginRefresh().
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 7:59 AM ET / 11:59 UTC. Summary Reproducibility: yes. from source: connect a paired node that advertises the existing Codex list command but not the new turn-read command, then click Read; the UI enables navigation and the request fails unavailable. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Carry transcript-read capability in every host result, disable or hide Read until the paired node advertises and is approved for the command, then prove local, mixed-version, and paired-node flows with redacted real artifacts. Do we have a high-confidence way to reproduce the issue? Yes from source: connect a paired node that advertises the existing Codex list command but not the new turn-read command, then click Read; the UI enables navigation and the request fails unavailable. Is this the best way to solve the issue? No in its current form: bounded upstream pagination is the right data source, but listing support must not be treated as proof that transcript reads are available. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 90e465833b30. Label changesLabel justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fbeca0766
ℹ️ 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".
| class="btn btn--small codex-session__open" | ||
| type="button" | ||
| aria-label=${t("codexSessions.actions.readTranscriptLabel", { title })} | ||
| ?disabled=${!interactionsEnabled || !host.connected} |
There was a problem hiding this comment.
Disable transcript opens for nodes without turn reads
When a paired node is still on the list-only command set, or the newly added turns command has not been approved yet, the catalog can still return that node because listing only requires codex.appServer.threads.list.v1, but codex.sessions.read later rejects the same node unless it advertises codex.appServer.thread.turns.list.v1. This button is enabled for any connected host, so selecting one of those remote rows opens a transcript route that can only fail as unavailable; please expose transcript capability in the host payload or disable/filter these opens until turns are available.
Useful? React with 👍 / 👎.
0343ee2 to
be4f720
Compare
* feat: show Codex transcripts in sidebar * fix: clear Codex sidebar on Gateway switch * chore: leave release notes to release workflow * chore: refresh native i18n inventory * fix: satisfy macOS Codex node lint * fix: refresh native localization inventory * docs: refresh documentation map * chore: refresh UI locale metadata
Closes #104399
AI-assisted: implemented with Codex. I reviewed the source, protocol contract, generated locale output, tests, and rendered browser proof.
What Problem This Solves
Codex supervision currently exposes a fleet catalog, but supervised sessions are not part of the normal sidebar workflow and their persisted content cannot be read. Users can see titles without being able to open the actual Codex work from another computer.
Why This Change Was Made
This adds a host-grouped, non-archived Codex session section to the Control UI sidebar and a native transcript detail route. Transcript reads use Codex App Server's experimental
thread/turns/listcontract withitemsView: "full", fetching 20 turns at a time through opaque cursors; there is no unbounded history fallback, and each serialized page is capped at 20 MiB.The Mac node advertises the matching read command only when Codex supervision is enabled. Remote sessions remain read-only: continue and archive stay on the owning computer, and OpenClaw never substitutes another model/runtime for Codex work. Automatic sidebar catalog hydration is bounded at 100 pages / 4,000 active sessions per host, with the full catalog available for further browsing.
User Impact
Users with Codex supervision enabled can see active Codex sessions from the Gateway and paired Mac app nodes in the sidebar, open any session, read its persisted user/assistant/reasoning/tool/file items, inspect the full JSON for each item, and load older history on demand.
Evidence
thread/listand paginatedthread/turns/listwithitemsView: "full"succeed;thread/items/listreturns the documented-32601unsupported response on the default store.ui:i18n:check, SwiftFormat lint, andgit diff --checkpassed.