Repository navigation
feat(native-chat): /resume in a structured chat opens Agent Session History - #28133
Conversation
|
Status: built, CI green, rendered QA done. Still a draft, not merged. Head Rendered QA: two rounds on a hidden, isolated build of this branch (macOS). A separate agent did every click. Real OpenCode and Pi ran against a local fake model; no real Claude or Codex. Passing:
Found in round 1 and fixed here: Enter on rows that can't open as a chat used to only expand them, even though the hint says "⏎ Open". They now fall back to the row's own ▶ resume, with tests that fail without the fix. Not verified by hand: whether a chat opened by Resume in New Native Chat shows its earlier turns. That needs a real Claude or Codex, and it's the existing launch path, which this PR doesn't change. Existing behavior QA ran into (not this PR):
|
266b5b1 to
df52c7b
Compare
A session row decided "can ▶ resume this" twice: once for the button's disabled state and again inside its click handler, and the chat/CLI and switch-to-pane offers were each gated inline. A second caller of those offers would have had to copy the same conditions again. - One projection, resolveAiVaultSessionRowChatActions, now decides every open/resume offer a row makes; ▶'s greyed-out state and its target come from the same value. - The panel's host-scope menu and per-session resume lookups move into their own hooks unchanged, and the session-list request reads the panel's workspace through one selector. The sidebar behaves exactly as before.
395ccd2 to
d29a88e
Compare
6e45b99 to
5baacd1
Compare
A second Session History panel (the /resume dialog that follows) needs to describe a chat's own workspace rather than the active one, and to let ↑/↓/Enter pick a row. Mounting it beside the sidebar also exposed a place where two panels stepped on each other. - AiVaultPanel takes an optional workspace, an initial query, a header action slot, a small search handle, and onSessionOpened, which also turns on row keys. A thin sidebar wrapper now owns Settings' "focus the search" request, so only the sidebar widens to All. - Keyboard rows store the chosen row, its session and the search text; a session listed twice no longer traps the arrows, and editing the search starts again at the top match. Enter takes the row's best offer: switch to it if open, else open it as a chat, else the row's own ▶, else show details. A clicked row moves focus to the panel, so the keys keep working, and a row scrolled into view stops below the pinned group header. - Switching to an open session reports whether it found something to switch to. - Mounted panels share one copy of the saved view options, so a filter changed in one is not undone by the other.
5baacd1 to
e838f33
Compare
Resuming a past session was only reachable from the Agents sidebar, so people in a chat had no way to find it. In a structured native chat, /resume [search] now opens Agent Session History for the chat's own workspace in a dialog, with the search filled in. - The dialog lives in the app's modal slot: a dialog rendered inside a chat would bubble its key and pointer events through the chat's own capture handlers. It closes once the tab on screen changes or a switch to an open session succeeds; a failed action leaves it open. Focus goes back to the chat unless the user was taken elsewhere. - /resume is an ordinary row in the structured chat's / menu, in place of an agent command of that name, or last when there is none. A skill named resume keeps its own row and a picked skill still goes to the agent. Typing it in any case opens the dialog; attachments stay. - Terminal-backed chats (SSH, WSL runtimes, custom start folders, reused terminals, older hosts) are unchanged: /resume reaches the agent as before. The phone is unchanged too.
e838f33 to
dff9cc9
Compare
…history-panel-refactor
…anb2025/slash-resume-session-history # Conflicts: # src/renderer/src/app-shell/AppRootSurfaces.tsx # src/renderer/src/store/slices/ui/ui-slice-contract-contextual.ts
Review status (head 3f6c4d7): review loop finished, QA passedThe problem. In a native chat Orca runs directly, typing What changes for the user. Typing Decisions made during review (all by the PR author):
Fixed during the latest rounds:
Known differences, labelled in the PR body: a busy chat's work is stopped rather than kept running in the background (intended: Orca has no chat-without-a-tab state; the prompt makes it the user's choice); tab order on a paired phone is unverified (temporary); an OpenCode 2.x conversation may open as an OpenCode 2 chat (intended). Verified:
Not verified: OpenCode in a rendered build (blocked by the QA setup's port limits), Grok, real Codex sessions, a chat still starting, a host Orca can't see, SSH and paired hosts, the phone, and Windows/Linux rendering. |
The dialog's agent filter starts on the agent recorded for the chat, the same one its tab icon shows, and stays local to the dialog: the sidebar's saved filter is never read or written by it. Sort, grouping and limit stay shared. An agent the filter doesn't list leaves every agent shown.
…sume-session-history # Conflicts: # src/renderer/src/components/right-sidebar/AiVaultPanel.tsx
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1a077897-9800-4ed8-a40e-ea034b3d3b7d
📒 Files selected for processing: 45
src/renderer/src/app-shell/AppRootSurfaces.tsxsrc/renderer/src/assets/main.csssrc/renderer/src/components/agent-session-continuation/AgentSessionContinuationDialog.tsxsrc/renderer/src/components/native-chat/NativeChatComposer.resume-command.test.tsxsrc/renderer/src/components/native-chat/NativeChatComposer.test.tsxsrc/renderer/src/components/native-chat/NativeChatComposer.tsxsrc/renderer/src/components/native-chat/native-chat-picker-items.tssrc/renderer/src/components/native-chat/use-native-chat-composer-catalog.test.tsxsrc/renderer/src/components/native-chat/use-native-chat-composer-catalog.tssrc/renderer/src/components/native-chat/use-native-chat-composer-submit.tssrc/renderer/src/components/native-chat/use-native-chat-picker-state.tssrc/renderer/src/components/native-chat/use-native-chat-resume-command.tssrc/renderer/src/components/right-sidebar/AiVaultPanel.tsxsrc/renderer/src/components/right-sidebar/AiVaultPanelHeader.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.test.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.keyboard.test.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.tsxsrc/renderer/src/components/right-sidebar/AiVaultSidebarPanel.tsxsrc/renderer/src/components/right-sidebar/AiVaultVirtualRow.tsxsrc/renderer/src/components/right-sidebar/agent-session-history-modal.tssrc/renderer/src/components/right-sidebar/ai-vault-host-scope.tssrc/renderer/src/components/right-sidebar/ai-vault-original-pane-actions.tssrc/renderer/src/components/right-sidebar/ai-vault-panel-session-list-request.tssrc/renderer/src/components/right-sidebar/ai-vault-panel-workspace.tssrc/renderer/src/components/right-sidebar/ai-vault-session-chat-action.test.tssrc/renderer/src/components/right-sidebar/ai-vault-session-chat-action.tssrc/renderer/src/components/right-sidebar/right-sidebar-panel-content.tsxsrc/renderer/src/components/right-sidebar/use-ai-vault-panel-session-resume.tssrc/renderer/src/components/right-sidebar/use-ai-vault-panel-workspace.tssrc/renderer/src/components/right-sidebar/use-ai-vault-search-focus-request.test.tsxsrc/renderer/src/components/right-sidebar/use-ai-vault-search-focus-request.tssrc/renderer/src/components/right-sidebar/use-ai-vault-session-keyboard-navigation.tssrc/renderer/src/components/right-sidebar/use-persisted-ai-vault-view-options.test.tsxsrc/renderer/src/components/right-sidebar/use-persisted-ai-vault-view-options.tssrc/renderer/src/components/tab-bar/tab-session-history-switch.parity.test.tssrc/renderer/src/components/ui/dialog.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/store/slices/ui/ui-slice-contract-contextual.tssrc/shared/native-chat-slash-commands.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
A structured OpenCode chat records its provider as opencode, but the scanner lists current OpenCode sessions as opencode2, so filtering on the recorded name alone hid every OpenCode row, the chat's own included.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Guard terminal resume actions per session. · ai-vault-session-launch-actions.ts:158-171
src/renderer/src/components/right-sidebar/ai-vault-session-launch-actions.ts:158-171
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick winGuard terminal resume actions per session.
handleResumehas no in-flight guard. Two rapid non-repeat Enter events or repeated Play actions can call it twice. Each call can reachlaunchAiVaultSessionInNewTab, whose non-web path creates a tab and queues a startup command without deduplication. Add a per-session guard that remains active until the launch promise settles.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
2d09114e-e79a-4490-a06e-c3029b756241
📒 Files selected for processing: 3
src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.test.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.tsxsrc/shared/ai-vault-types.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Update:
|
Conflicts: - AiVaultPanel.tsx: kept main's scan progress strip and scan-issue banner changes, re-applied the chat-bound panel props. The panel handle and props types plus the handle hook move to ai-vault-panel-handle.ts, and the keyboard root props to the keyboard-navigation module, to stay under the file line cap. - Six locale files: kept both sides' keys. NativeChatComposer.tsx went over the line cap with main's send changes, so the resume command hook now takes the picker state and its interceptPick no longer needs the autocomplete argument.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
89238144-ac1f-4620-8664-515066d429a6
📒 Files selected for processing: 15
src/renderer/src/assets/main.csssrc/renderer/src/components/native-chat/NativeChatComposer.tsxsrc/renderer/src/components/native-chat/use-native-chat-resume-command.tssrc/renderer/src/components/right-sidebar/AiVaultPanel.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.tsxsrc/renderer/src/components/right-sidebar/AiVaultSidebarPanel.tsxsrc/renderer/src/components/right-sidebar/ai-vault-panel-handle.tssrc/renderer/src/components/right-sidebar/use-ai-vault-session-keyboard-navigation.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes: 6
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
…he chat In the /resume dialog a row is now only a "resume here" target: clicking it or pressing Enter opens the picked conversation as a chat right after the chat /resume was typed in, and closes that chat once the new one is confirmed and the old one is idle. A conversation already open elsewhere is switched to, the chat's own conversation just closes the dialog, a closed chat of this workspace and agent is reopened in its place, and anything else only expands its details. A failed resume closes its own tab and leaves the old chat as it was. Dialog rows drop every other action (overflow and context menus, title drag, hover buttons, detail and subagent buttons); the chevron still shows the details. The dialog widens from 480px to 560px. The sidebar's Session History panel is unchanged.
- Subagent lines in a picker row offer no View Log either (resume null switches them off). - An unsaved row in the picker drops the "open the log" hint, since the picker has no log button. - The sidebar title drag handler is restored, so a row whose resume is disabled still blocks text drags. - Only a failed resume closes its new tab; an unknown outcome keeps both tabs (the new one has its own badge and Retry). - The replaced chat closes only when its last turn finished, its composer draft is empty, and it is not pinned. - One pick at a time: a pick is ignored while an earlier one is still settling.
A chat with no status entry closes when its launch has finished and its host, observed live, reports no message and no provider still starting. Still-starting and unobservable chats stay open.
…icker details - A row listed before its chat took the conversation over has no ownership link. The pick now also reads each open chat's own record (its host status feed's provider session, else the conversation its launch resumes): the chat /resume was typed in just closes the dialog, and another open chat is switched to, instead of trying the takeover again and failing. - The first prompt's Copy button is hidden in picker rows (same switch).
…me rows Drop the renderer's own "which chat holds this conversation" lookup: it keyed on the record's head handle, which differs from the host's ownership key (Pi rows, older chain links). Instead, when a resume-here launch is refused because the conversation is held elsewhere, the refusal's owner decides: this chat closes the picker, another chat is switched to, the temporary tab closes, and no failure toast is shown. Rows with an ownership link keep the existing fast path.
…sume hook Keeps NativeChatComposer under its line cap once current main is merged in.
…the agent is busy Picking a row now always closes the chat /resume was typed in once the picked conversation's chat is confirmed, pinned or not; the unsent-draft and finished-turn checks are gone. When that chat's agent is replying, waiting on an approval or question, or still starting, Session History closes and a small "Replace this chat?" prompt asks first; Cancel or Esc changes nothing. The prompt reuses the shared confirmation dialog with a new compact look matching the close prompts.
Conflicts: - ai-vault-session-resume-in-chat-launch.ts: kept main's host-tried adopting agent (adoptingAgentOnHost) and this branch's replacement placement/settle hook. - use-native-chat-composer-catalog.ts: kept main's keepsScannedSkills and branch order; /resume row still appended to every structured catalog. - use-native-chat-composer-catalog.test.tsx: both import sets; main's OpenCode skill cases filter out Orca's own /resume row. - NativeChatComposer.tsx: kept main's disabled/hasPty and picker `disabled`; moved catalog + picker + /resume wiring into use-native-chat-composer-command-picker.ts to stay under the file's line cap.
…izes The primitives own their typography, so the short close-prompt look is a size variant on DialogTitle and DialogDescription rather than class overrides.
The /resume replace prompt matches the close prompts width (max-w-sm) via a compact size on the primitive; callers that pass no size render as before.
DialogContent now has a size prop; the pan-zoom dialog s size means the image, so it is omitted from the inherited props.
…pt ignores the opening gesture - R8-1: a chat whose host isn't observed live (old host without the status feed, lost contact, no host stamped on the tab) counts as busy, so replacing it asks. - R8-2: the confirmation dialog takes ignoresOpeningGesture: an outside press doesn't dismiss it, a repeated Enter doesn't confirm, and a double-click's second click doesn't press Replace. Other callers are unchanged.
Resolve the composer and catalog-test conflicts: keep the command-picker hook and follow main renaming sessionSkillNames to sessionSkills.
A row listed before its conversation was adopted has no structured link, so /resume launches a new chat and the host refuses it, naming the closed chat that holds the conversation. That branch reopened the owner but never closed the source chat. Both the reveal path and the refusal path now share one reveal-in-place step; an owner open in another tab is still switched to and the source kept.
Main moved openStructuredAgentSessionProvisionalTab into structured-agent-session-launch-surface.ts; carry the after-this-tab placement over to it.
Reveal appends the reopened tab to the end of its group, so a /resume that reopened a closed chat left it after unrelated tabs. Move it right after the source with the existing anchor-insertion helper before the source closes, the way a new chat lands.
With the caret right after /resume and a search typed past it, picking the menu row opened Session History with an empty search. Read the search from the draft, as a typed send does.
ELI5
People who use an agent in the terminal are used to typing
/resumeto pick up an old conversation where they are. In Orca's structured chat view (the chat Orca runs itself, as opposed to the chat view laid over an agent running in a terminal) that didn't work: depending on the agent,/resumewas answered with "not available in chat sessions" or sent to the agent as an ordinary message. Orca can already reopen past conversations from the Agents panel in the right sidebar (Agent Session History → Resume in New Native Chat), but people looking at a chat don't find it.Now typing
/resumein a structured chat opens a picker built from that same Agent Session History panel, right where you are. Click a conversation (or press Enter) and it continues in that chat's place: the chat you typed/resumein is replaced by the one you picked.What Changed
Before: a user told us: "I'd also say that /resume feature for Chat UI is pretty critical, too… Can get at it in terminal but not chat."
/resumewas refused with "/resume is not available in chat sessions. Use the slash menu to see available commands."/resumewas sent to the agent as message text; nothing let you pick a past conversation./resumedid reach the agent. OMP's/resume <session>resumed in place; Codex and Claude opened their own picker in the terminal behind the chat, reachable with Switch to Terminal.After, in structured chats only:
/menu has an ordinary/resume [search]row ("Open Agent Session History"). It sits where the agent's ownresumecommand was, or last when the agent has none, with no special pinning or styling. It is ranked like any other command: commands are listed above skills, and what you type matches a command's name and its description. So a short query can now pick/resumewith Enter where it used to pick something else, for example/s,/sumor/his(which match "resume" or "Agent Session History") ahead of a skill, or/rin a structured Codex chat (where it used to pick the effort option)./resume(in any letter case) and pressing Enter or Send, or choosing Orca's row with Enter or a click, opens the dialog and never reaches the agent. Anything after/resumefills in the search. The composer clears; attached images stay for your next message.resumekeeps its own row. Orca's row replaces only an agent command namedresume. Picking the skill row and sending still sends it to the agent as the skill, as before; typing/resumeyourself, or choosing Orca's row, opens the dialog. One short-lived exception: before a Claude chat's first reply, Claude reports every name without saying whether it is a command or a skill, so aresumeskill that Orca can't find on disk (for example one from a plugin) has no row until that first reply./resumein a Claude chat lists only Claude conversations (an OpenCode chat lists OpenCode and OpenCode 2). The dialog's agent filter is its own and never changes the sidebar's saved filter./resumein:/resumein is idle, picking a row replaces it with no prompt, whether or not it is pinned (its message box only held/resume). If its agent is busy (replying, waiting for an approval or an answer, or still starting), or Orca can't currently see its host to tell, Session History closes and a small prompt asks Replace this chat? with one line: "Resuming “” here will stop what is doing in this chat." Replace goes ahead exactly as for an idle chat; Cancel or Esc changes nothing (a click outside the prompt, a held Enter or the second click of a double-click does not answer it) and puts you back in the chat's message box. A closed chat is closed like any chat tab: its history and queued messages stay with it, and Session History (or/resumeagain) reopens it.Unchanged:
/resumegoes to the agent. Those chats are the agent's own terminal underneath, and the agent's own/resume(OMP resuming in place, the Codex and Claude pickers) still works there, so Orca doesn't take the command over.How it works:
use-native-chat-resume-command.tsholds the whole command: the one localized menu row, the parser (it reads the first word case-insensitively, the way the chat host reads commands), and the hook the composer calls. Typed send, Enter on the menu row and clicking the row all go through it before anything is sent. It only acts when the chat is structured, and it hands the dialog the chat's tab, workspace and agent. If the workspace hasn't loaded yet it says "This chat's workspace isn't loaded yet. Try /resume again in a moment." and keeps your text./menu hides an agent command of the same name but never a skill. A skill you picked from the menu is remembered the way the composer already remembers it for terminal chats, so sending it isn't intercepted.AiVaultPaneltakes a few optional props: the workspace to bind to, the starting search and agents, a header slot for the close button, a small handle to focus or clear its search, andresumeHere(the chat/resumecame from).resumeHereis the one switch for picker rows: it travels down to the row, which then calls a pick instead of toggling details and drops its menus, drag and buttons. The sidebar never passes it.ai-vault-session-resume-here.ts. It reads the row's existing action projection (the same one the row buttons use), checks the cases in the order above, and reuses existing mechanisms: switching to an open session, reopening a closed chat, and Resume in New Native Chat with a new "open right after this tab" placement. Before anything launches it reads, once, whether the old chat is busy: its entry in the agent status store says replying or asking, its launch is still pending, its host reports the agent still starting, or its host can't be observed live right now (treated as busy, so an unseen running agent is never stopped without asking). The prompt is the app's shared confirmation dialog with a new compact look that matches the close prompts. Nothing is stored: the old tab is closed only after the launch reports the new chat confirmed. The one-pick-at-a-time guard lives in the list for as long as the dialog is open, and clears when the pick settles: every launch path reports once, including when nothing launched.Why
/resumematches the terminal habit, where picking a conversation continues it where you are. A structured chat has no terminal picker of its own, so Orca answers the command./resumeunderneath; taking it over there would remove something that works./clearchanges a chat's conversation (to a fresh one). Re-pointing a live chat would need a new host operation, new saved state and a wire change for paired hosts. Reusing Resume in New Native Chat plus the normal tab close needs none of that, and closing only after the new chat is confirmed means a failure can't lose the chat you were in.Differences from the common pattern:
/resumetreats OpenCode and OpenCode 2 as one agent, so the new chat runs whichever of the two the host can continue it with.Alternatives considered:
/resumewas chosen as the first step; a button can open the same dialog later./resumewould then leave two chats where the user asked for one; a prompt for the busy case keeps the replace and never stops work silently.Linked Issue
N/A: user feedback (quoted above); maintainer PR.
Visual Proof
Rendered QA on 2c08a78, M4Air macOS, hidden isolated branch build. Grok drove the main flows; Codex drove supplemental draft/failure/cache/subagent/incompatible-agent checks through Playwright CDP. Real Claude and OpenCode CLIs answered from a local fake model with dummy credentials; Codex was blocked by the rig guard. The child transcript used to check subagent controls is explicitly synthetic.
UNEXPECTED: a cached current-conversation row can attempt resume and show an error instead of silently dismissing; Copy first prompt remains despite the literal no-action-buttons requirement; a pinned old chat and a reopened target can have an unrelated tab between them. The main idle, keyboard, busy, empty, draft-preservation, failure-cleanup, OpenCode, and sidebar-action flows otherwise passed. Four focused test files / 21 tests passed. No remote, awaiting-approval, still-starting, paired/mobile or other-platform result is claimed. The local report is
qa-evidence/pr-28133-d7/REPORT.md.Claude picker: 560px, hover, expanded details, subagents
Idle Claude: click, history and working follow-up
Arrow keys and Enter
Busy Claude: old keeps replying, new immediately after
Superseded by D10: busy chats now ask for confirmation and are replaced after Replace.
Own conversation: UNEXPECTED stale-cache error
Already-open and pinned conversations
Brand-new empty Claude chat closes
Unsent draft survives
Failed resume removes provisional tab and restores old
OpenCode idle resume
Unchanged sidebar actions
Incompatible folder and agent only expand
Focused re-QA — b33a7cd (M4Air, 2026-10-17)
U1 PASS: choosing a stale Claude row held by the current chat closes the picker with the same final tab IDs and no toast; choosing it from another chat switches to its holder with no duplicate or toast. The permitted provisional tab briefly opens and closes through the host refusal. U2 PASS: expanded dialog details contain zero buttons, including no Copy first prompt. Real Claude CLI, local fake model, hidden isolated E2E app, Grok driving Playwright CDP. Structured Pi check is BLOCKED: installed Pi 0.73.1 runs the fake model but this build requires Pi >=0.84.0 for structured chat.
Stale own row, before and after; stale other row, before and after; expanded button-free details:
D10 rendered QA — a635dc1 (M4Air, 2026-10-18)
Hidden isolated E2E build; Codex drove Claude flows 1–8 through Playwright CDP after Grok exhausted its turn limit during setup. Real Claude CLI, local fake model, dummy credentials. The replacement prompt measured 384px, focused Replace, and showed only the requested description and two buttons. Idle replacement, answered follow-up, busy Cancel/Esc with composer focus restored, busy Replace with the old PID stopped, double-click/outside-click/held-Enter guards, and unchanged own-conversation/sidebar actions passed. Fresh conversation targets also passed from pending approval and pinned idle chats. OpenCode flow 9 is BLOCKED by its private server choosing a port outside the QA grant.
UNEXPECTED: choosing a previously opened then closed structured conversation reopens its tab but leaves the source chat open: reproduced from both a pending-approval chat (old PID still live) and a pinned idle chat. These failures are in the same workspace. Full evidence and tab IDs:
qa-evidence/pr-28133-d10/REPORT.md.Resolved. R9 (
8a9ff20fcfb): the same picks from a busy chat and a pinned idle chat now close the source chat (its agent process exits), and a row whose conversation is open in another tab switches there and keeps the source. R10 (1c767a8a8fd): the reopened chat takes the source chat's slot in the tab bar (pinned source at position 1 → reopened chat at position 1; middle source at position 4 → position 4; a never-opened conversation also lands in the slot). No UNEXPECTED finding remains on1c767a8a8fd.D10 prompt, Cancel, and successful replacement of a busy chat
D10 finding: closed structured targets leave the old chat open
The first image includes earlier fixture-path setup errors in the reopened target's history; the failure is the still-open approval chat to its left. The second image shows the pinned idle source still open after selecting another closed conversation.
Final QA — 3f6c4d7
M4Air: all four flows PASS with Codex driving Playwright CDP and real Claude CLI against the isolated local fake model. Picking the
/resumerow with the caret beforeheronkeeps the search (click and Enter); plain/resume, typed search + Enter, idle replacement, and busy Cancel also pass. UNEXPECTED: none.Testing
1c767a8a8fd: see Visual Proof. OpenCode was blocked by the QA rig, not by this change.AiVaultSessionVirtualList.keyboard.test.tsx: a held (repeating) Enter does nothing; a refused resume leaves the old chat active with no failed tab; an unknown outcome keeps both tabs; a busy chat asks first, and Cancel changes nothing while Replace replaces it; an idle chat is replaced right after its tab with no prompt; when the host refuses the takeover, the owner decides: this chat closes the picker with no error toast and no leftover tab, another open chat is switched to, and a closed chat reopens in this chat's slot and replaces it. (Skipping the busy check fails it.) Arrows skip headers and collapsed groups, get past a session listed twice, and a new search starts at the top match.AiVaultSessionRow.test.tsx: a picker row has no ⋯ menu, right-click menu, drag or action buttons (in the row, its details including the first prompt's Copy, or its subagent lines, including View Log), a click picks it, and the chevron still shows details.NativeChatComposer.resume-command.test.tsx: a structured chat's typed/Resume authand the menu row open the dialog for that chat and send nothing; a picked skill namedresumestill goes to the agent; a terminal-backed chat sends/resumeto the agent as before.use-native-chat-composer-catalog.test.tsx: Orca's row takes an agent command's place, a namesake skill keeps its row, and terminal chats keep the agent's own catalog.AiVaultSessionHistoryDialog.test.tsx: opens on the chat's workspace and agent with the search filled; stays open when an action fails and closes once a tab opens; Esc clears then closes and returns focus; the sidebar keeps its own search and saved filter.use-persisted-ai-vault-view-options.test.tsx: two mounted panels don't undo each other's options.Review
Agent skill upstream boundary
Notes
/resumebefore any transport, so it never reaches a host as text. A phone viewing the old chat sees it close and the new chat appear (order unverified, see above)./resume …still sends it as text (true of every command today); cancelling the dialog doesn't restore the typed/resumetext.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)