Skip to content

feat(native-chat): /resume in a structured chat opens Agent Session History - #28133

Merged
brennanb2025 merged 30 commits into
mainfrom
brennanb2025/slash-resume-session-history
Oct 19, 2026
Merged

brennanb2025 merged 30 commits into
mainfrom
brennanb2025/slash-resume-session-history

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​940 $\color{#cf222e}{\Huge{\mathbf{−}}}$​18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​922
Prod 48 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1692 $\color{#cf222e}{\Huge{\mathbf{−}}}$​456 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1236

ELI5

People who use an agent in the terminal are used to typing /resume to 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, /resume was 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 /resume in 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 /resume in 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."

  • Structured Codex and OMP chats: /resume was refused with "/resume is not available in chat sessions. Use the slash menu to see available commands."
  • Structured Claude, OpenCode, Pi and Grok chats: /resume was sent to the agent as message text; nothing let you pick a past conversation.
  • Terminal-backed chats (the chat view over an agent CLI: every SSH chat, WSL-runtime projects, chats started in a custom folder or a reused terminal, and chats on older paired hosts): /resume did 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:

  • The / menu has an ordinary /resume [search] row ("Open Agent Session History"). It sits where the agent's own resume command 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 /resume with Enter where it used to pick something else, for example /s, /sum or /his (which match "resume" or "Agent Session History") ahead of a skill, or /r in a structured Codex chat (where it used to pick the effort option).
  • Typing /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 /resume fills in the search. The composer clears; attached images stay for your next message.
  • A skill named resume keeps its own row. Orca's row replaces only an agent command named resume. Picking the skill row and sending still sends it to the agent as the skill, as before; typing /resume yourself, 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 a resume skill that Orca can't find on disk (for example one from a plugin) has no row until that first reply.
  • The dialog shows the Agent Session History list (header, Workspace / Project / All, search, sort, rows), 560px wide. It opens on Workspace, meaning the chat's own workspace, filtered to the chat's own agent: /resume in 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.
  • Each row is only a "resume here" target. There is no ⋯ menu, no right-click menu, no dragging a row out, no hover buttons, and no action buttons in the expanded details, including the first prompt's Copy and View Log and resume on subagent lines. The chevron still expands a row's details: first prompt, latest turns and subagents.
  • Clicking a row, or selecting it with ↑/↓ and pressing Enter, resumes that conversation in the chat you typed /resume in:
    1. The chat's own conversation: the dialog just closes and you are back in the composer.
    2. A conversation already open in another tab: Orca switches to that tab. One conversation never runs in two chats. This holds even when the list was loaded before that chat took the conversation over: the host refuses a second takeover and names the chat that holds the conversation, so Orca closes the temporary tab without an error and switches to that chat (or, for the chat you typed in, just closes the dialog).
    3. A conversation a closed chat of this workspace and agent owns: that chat reopens, with its own history, and the chat you typed in closes. This also holds for a row listed before that chat took the conversation over: the host refuses the new chat and names the closed one, which reopens the same way.
    4. Any other conversation this agent can continue here: a new chat for it opens right after the current tab, already showing its earlier turns, and becomes the active tab. Once that chat is confirmed, the old tab closes.
    5. Anything else (another agent's conversation, one recorded on an SSH or other remote host or under WSL, one recorded in a different folder for agents that need the workspace root, or a search hit that can't be resumed): the click or Enter only shows its details. Nothing launches.
  • The old chat is always replaced, and asks first only when its agent is busy. If the chat you typed /resume in 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 /resume again) reopens it.
  • A refused resume changes nothing. When the agent or host refuses it (for example "Another chat is already holding this conversation" or the conversation hasn't been saved yet), an error toast says so, the new chat's tab is closed, and you are back in the chat you started from.
  • An unknown outcome keeps both chats. If Orca can't tell whether the new chat was created, the new tab stays with its own "unknown" badge and Retry, and the old chat stays open too.
  • One pick at a time. While a pick is still being set up, further clicks and Enter presses are ignored.
  • The dialog closes when you are taken somewhere (a tab opens or switches). It stays open with your search and selection only when an action fails before any tab opens. Most resume refusals arrive after the new tab has opened, so by then the dialog has already closed and the toast is the message. Esc clears the search first, then closes.

Unchanged:

  • Terminal-backed chats behave exactly as before. No Orca row, and /resume goes 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.
  • The right sidebar's Agents panel: same rows, menus, buttons and drag as before.
  • The phone app.

How it works:

  • use-native-chat-resume-command.ts holds 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.
  • The menu row is marked as Orca's own, so the / 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.
  • The panel is reused, not copied. AiVaultPanel takes 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, and resumeHere (the chat /resume came from). resumeHere is 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.
  • One module decides what a pick does: 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.
  • The dialog lives in the app's existing root modal slot, so the chat's own keyboard and mouse handlers don't take its typing and clicks. It closes when the tabs on screen change, read from the store rather than from each launch path.
  • No new saved field, no wire change, no new RPC. The modal request carries the chat tab's id in memory only.

Why

  • The feature already existed; people just couldn't find it from the chat. So the change is a way in from where the user is, not a second history UI.
  • Typed /resume matches 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.
  • Structured chats only, because terminal-backed chats still have the agent's own /resume underneath; taking it over there would remove something that works.
  • Resume in place by opening the picked conversation's own chat and closing the old one, rather than pointing the existing chat at another conversation. In Orca a chat tab is one conversation: its tab id, status, draft and saved record all belong to that conversation, and only /clear changes 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.
  • Picker rows have no other actions because the dialog is for one thing: continuing a conversation here. The sidebar keeps every action.

Differences from the common pattern:

  • The picked conversation gets a new tab in the old tab's place, instead of the same view switching to it. Intended: a tab is one conversation in Orca, so the view showing the picked conversation's own chat is the same outcome reached through Orca's tab model.
  • Replacing a busy chat stops its agent (after a confirm prompt), instead of leaving that work running in the background. Intended: Orca has no "chat running with no tab" state, so an approval the hidden turn asked for would have nowhere to show; the prompt makes the stop the user's choice, the same way closing a terminal whose agent is working asks first.
  • Phone tab order is unverified. Temporary: the host adds the new chat at the end of its tab group, so on a paired phone it may not land in the old chat's slot. QA checks this before merge.
  • An OpenCode 2.x conversation may open as an OpenCode 2 chat from an OpenCode chat. Intended: resuming picks the agent the host accepts for that conversation (the same rule as Resume in New Native Chat), and /resume treats OpenCode and OpenCode 2 as one agent, so the new chat runs whichever of the two the host can continue it with.

Alternatives considered:

  • A history button in the chat, or an entry in the tab bar's "+" menu. /resume was chosen as the first step; a button can open the same dialog later.
  • A new, lighter session picker. Rejected: a second history UI to keep in sync. The picker reuses the panel and switches row actions off with one prop.
  • Swapping the conversation inside the existing chat on the host. Rejected: it would rewrite the chat's saved identity and account home, replace a live history, and need a new capability-gated operation for paired hosts.
  • Keeping a busy old chat open beside the new one. Rejected after review: /resume would 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

Claude picker: hovered row has only the chevron

Expanded picker details: resume controls absent; Copy remains (UNEXPECTED)

Picker subagent line: readable, no action buttons; synthetic child fixture

Idle Claude: click, history and working follow-up

Idle Claude: picker before clicking a past conversation

New Claude tab: prior history and answered follow-up; old tab closed

Arrow keys and Enter

Arrow key selection on otter

Enter resumed otter history in the old tab slot

Busy Claude: old keeps replying, new immediately after

Superseded by D10: busy chats now ask for confirmation and are replaced after Replace.

Old Claude chat actively replying to the 90-second QA-LONG stream

Busy old preserved and resumed chat active immediately after

Own conversation: UNEXPECTED stale-cache error

Immediately selecting the newly resumed current conversation shows a failure toast; tabs unchanged

Already-open and pinned conversations

Already-open conversation selected without a duplicate tab

Pinned old preserved; reopened target appears after an intervening OMP tab (UNEXPECTED adjacency)

Brand-new empty Claude chat closes

Finished-starting empty Claude chat before resume

Empty old tab closed; selected conversation active

Unsent draft survives

Draft old preserved, resumed target immediately after and active

Returning to old chat shows its unsent draft intact

Failed resume removes provisional tab and restores old

Missing QA-created transcript refused; old chat active, failed new tab gone

OpenCode idle resume

OpenCode picker includes only OpenCode and OpenCode 2

Resumed OpenCode history visible; idle old tab closed

Unchanged sidebar actions

Sidebar ellipsis menu still contains its original actions

Sidebar expanded details retain resume, CLI, hand-off, log and subagent log controls

Incompatible folder and agent only expand

Other-folder Claude row only expands

Other-agent closed OpenCode row in Claude picker only expands

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:

02-own-stale-before.png
03-own-stale-after.png
04-other-stale-before.png
05-other-stale-after.png

10-expanded-details.png

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 on 1c767a8a8fd.

D10 prompt, Cancel, and successful replacement of a busy chat

flow2-busy-prompt.png

flow3-after-cancel.png

flow4-after-replace.png

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.

flow5-after-replace.png

flow7-after-pick.png

R9 8a9ff20fcfb: closed conversation reopened after Replace; busy source removed and PID 83041 exited

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 /resume row with the caret before heron keeps the search (click and Enter); plain /resume, typed search + Enter, idle replacement, and busy Cancel also pass. UNEXPECTED: none.

final-flow1-search-kept.png
final-flow4-busy-prompt-stable.png

Testing

  • I manually tested these changes locally
    • Rendered QA on a hidden, isolated macOS build with a real Claude CLI (a separate agent did every click), last on 1c767a8a8fd: see Visual Proof. OpenCode was blocked by the QA rig, not by this change.
  • Automated tests added/updated (kept to the flows people depend on)
    • 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 auth and the menu row open the dialog for that chat and send nothing; a picked skill named resume still goes to the agent; a terminal-backed chat sends /resume to 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.
    • 19 related test files pass locally (latest run of the touched ones: 10 files, 76 tests). Lint, typecheck and the code-quality checks run in CI.
  • Platforms: macOS locally. Keyboard labels use the platform check (⏎ on Mac, "Enter" elsewhere).

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • SSH / remote: SSH chats are terminal-backed, so they are unchanged. In a structured chat, rows recorded on SSH or other remote hosts can't continue here, so a click only shows their details. Reopening a closed chat and closing the old tab work on paired hosts through the chat's own host. No wire changes.
  • Mobile and mixed versions: the phone's command list doesn't include Orca's row, so the phone behaves as before. The desktop handles /resume before 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).
  • Folder and floating workspaces: the chat's workspace is looked up with the same lookup that covers folder and floating workspaces. Floating chats have no workspace folder, so only Codex conversations (which don't depend on the folder) can continue there; this is the existing Resume in New Native Chat limit.
  • What doesn't carry over: a pinned old chat is replaced like any other, and the new tab isn't pinned (a pin is mirrored to the host, so it isn't carried); a custom tab name stays with the old chat (renaming a tab only renames the tab).
  • Rows that can't continue here look like the others and only expand on click; there is no reason line yet. The agent filter can still widen the list (View options), but other agents' rows only show details.
  • Two tabs show briefly while the picked conversation loads (from when its chat opens until it is confirmed), then the old tab closes.
  • Not covered: editing a queued message into /resume … still sends it as text (true of every command today); cancelling the dialog doesn't restore the typed /resume text.
  • Existing behavior QA ran into (not changed here; follow-ups): the session scanner can list one conversation twice; a newly saved conversation can need a Refresh before it appears.
  • Performance: the dialog reuses the panel's session cache, and each opening mounts a fresh panel that unmounts on close.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Status: built, CI green, rendered QA done. Still a draft, not merged.

Head 266b5b1806b. CI on this head: all 14 checks that ran pass; the other 18 were skipped as not applicable.

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:

  • The / menu shows /resume, including for an agent with an empty command list.
  • The dialog opens on Workspace, and nothing reaches the agent (checked in the fake model's log and OpenCode's database).
  • /resume <text> pre-fills the search.
  • Enter switches to a chat that's already open; the tab count doesn't change.
  • Enter on a row that can't open as a chat runs its own resume. Pi reopened the conversation in a new tab, and the original chat was untouched.
  • Esc clears the search, then closes the dialog and refocuses the chat.
  • Clicking a row expands it, as in the sidebar.
  • The sidebar's own search is untouched.
  • Hand Off: Cancel keeps the dialog open; Start closes it.

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):

  • OpenCode 2 rows resume with an opencode2 command, which doesn't exist where OpenCode 2 is installed as opencode.
  • A conversation the scanner lists twice stops ↑/↓ from getting past it.
  • A newly saved conversation can need a Refresh before it appears.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/slash-resume-session-history branch from 266b5b1 to df52c7b Compare October 13, 2026 18:07
@brennanb2025 brennanb2025 changed the title feat(native-chat): /resume opens Agent Session History in a dialog feat(native-chat): /resume in a structured chat opens Agent Session History Oct 13, 2026
@brennanb2025
brennanb2025 changed the base branch from main to brennanb2025/session-history-panel-refactor October 13, 2026 18:08
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.
@brennanb2025
brennanb2025 force-pushed the brennanb2025/session-history-panel-refactor branch from 395ccd2 to d29a88e Compare October 13, 2026 18:31
@brennanb2025
brennanb2025 force-pushed the brennanb2025/slash-resume-session-history branch 2 times, most recently from 6e45b99 to 5baacd1 Compare October 13, 2026 18:39
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.
@brennanb2025
brennanb2025 force-pushed the brennanb2025/slash-resume-session-history branch from 5baacd1 to e838f33 Compare October 13, 2026 18:47
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.
@brennanb2025
brennanb2025 force-pushed the brennanb2025/slash-resume-session-history branch from e838f33 to dff9cc9 Compare October 13, 2026 21:16
…anb2025/slash-resume-session-history

# Conflicts:
#	src/renderer/src/app-shell/AppRootSurfaces.tsx
#	src/renderer/src/store/slices/ui/ui-slice-contract-contextual.ts
@brennanb2025

brennanb2025 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Review status (head 3f6c4d7): review loop finished, QA passed

The problem. In a native chat Orca runs directly, typing /resume either went to the agent as a plain message or was refused with "not available in chat sessions". The only way to reopen an old conversation as a chat was the right sidebar's Agent Session History, which people looking at a chat don't find.

What changes for the user. Typing /resume (or /resume <words>) in such a chat opens Agent Session History in a dialog, filtered to this chat's workspace, this chat's agent and the typed words. Rows only do one thing: clicking one (or Enter) continues that conversation in this chat. The picked conversation takes this chat's tab slot and this chat closes. The chevron still shows a row's details; there is no ⋯ menu, right-click menu, drag or action buttons. If this chat's agent is busy (replying, waiting for an approval or answer, still starting, or its host can't be seen right now), a small prompt asks Replace this chat? first; Cancel or Esc changes nothing. An idle chat is replaced with no prompt. Picking this chat's own conversation just closes the dialog, and a conversation open in another tab is switched to. The dialog is slightly wider (560px). Terminal-backed chats, including every SSH chat, are unchanged.

Decisions made during review (all by the PR author):

  • Only structured chats get Orca's /resume; terminal-backed chats behave as on main.
  • /resume is an ordinary menu row; a user's own resume skill keeps its own row; ordinary ranking.
  • The dialog starts filtered to the chat's own agent (OpenCode includes OpenCode 2); the filter is dialog-only and never touches the sidebar's saved filter.
  • Rows are click-to-resume only, in the very chat /resume was typed in.
  • A busy chat is replaced after a confirmation prompt that matches the app's other close prompts, with one generic line.

Fixed during the latest rounds:

  • A chat whose state Orca couldn't see was treated as idle and replaced without asking; it now asks.
  • The prompt could be answered by the double-click or held Enter that opened it; it now ignores that gesture.
  • Picking a conversation that a closed chat already owned reopened that chat but left the source chat open (and its agent running); it now replaces the source.
  • A reopened chat landed at the end of the tab group; it now takes the source chat's slot.
  • Picking the /resume menu row dropped a search typed after the caret; it now keeps it.

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:

  • Final short QA on 3f6c4d757be itself (same separate Mac): the menu row keeps a search typed after the cursor, plain /resume opens with an empty search, typed /resume heron + Enter searches, idle replace in place, busy prompt Cancel changes nothing. No unexpected findings; the test home's real config files were unchanged.
  • Review rounds R1–R11, including two rounds on the replace-and-confirm change and one on the QA fixes; the last round found nothing. All review threads are resolved.
  • Rendered QA on a separate Mac with a real Claude CLI against a local fake model, last on 1c767a8a8fd: idle replace, the busy prompt (384px, Replace focused), Cancel/Esc with focus back in the message box, Replace stopping the old agent, the approval-wait case, the gesture guard, pinned chats, closed-chat reopen in the source's slot, own conversation, and the unchanged sidebar actions. Screenshots are in Visual Proof.
  • PR CI is green on 3f6c4d757be.

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.

@brennanb2025
brennanb2025 marked this pull request as ready for review October 13, 2026 23:32
@brennanb2025
brennanb2025 deleted the branch main October 14, 2026 00:06
@brennanb2025 brennanb2025 reopened this Oct 14, 2026
@brennanb2025
brennanb2025 changed the base branch from brennanb2025/session-history-panel-refactor to main October 14, 2026 00:06
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
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e3ed48a9-3918-428b-ba21-ce49813b935d
📥 Commits

Reviewing files that changed from the base of the PR and between 2c00e51 and 19ddb35.

📒 Files selected for processing: 17
  • src/renderer/src/components/native-chat/NativeChatComposer.resume-command.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-resume-command.ts
  • src/renderer/src/components/right-sidebar/AiVaultPanel.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionDetails.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.keyboard.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.tsx
  • src/renderer/src/components/right-sidebar/AiVaultVirtualRow.tsx
  • src/renderer/src/components/right-sidebar/SessionRowTrailingActions.tsx
  • src/renderer/src/components/right-sidebar/agent-session-history-modal.ts
  • src/renderer/src/components/right-sidebar/ai-vault-panel-handle.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-here.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-launch.ts
  • src/renderer/src/lib/structured-agent-session-provisional-tab.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

📝 Walkthrough

The change adds an AI Vault session-history dialog with workspace-aware session actions and keyboard navigation. Structured chat gains an Orca-owned /resume command that opens the dialog with a search query. The change also updates picker behavior, persisted view options, translations, and tests.

Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 19ddb

Some /resume selections can lose the search or show history for the wrong workspace, and a failed resume can require reopening the dialog. These are bounded issues with workarounds; merge with owner awareness or address them first.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 36.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 68 functions across 48 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title is concise, specific, and accurately describes the main change: adding structured-chat /resume support that opens Agent Session History.
Description check Passed The description follows the required template and provides detailed user impact, implementation scope, rationale, testing, visual proof, platform considerations, and checklist status. The maintainer e…
Full details: Description check

Explanation

The description follows the required template and provides detailed user impact, implementation scope, rationale, testing, visual proof, platform considerations, and checklist status. The maintainer exception supports the N/A linked issue entry.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1a077897-9800-4ed8-a40e-ea034b3d3b7d
📥 Commits

Reviewing files that changed from the base of the PR and between d7f7474 and c21c815.

📒 Files selected for processing: 45
  • src/renderer/src/app-shell/AppRootSurfaces.tsx
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/agent-session-continuation/AgentSessionContinuationDialog.tsx
  • src/renderer/src/components/native-chat/NativeChatComposer.resume-command.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposer.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/native-chat-picker-items.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-catalog.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-catalog.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-submit.ts
  • src/renderer/src/components/native-chat/use-native-chat-picker-state.ts
  • src/renderer/src/components/native-chat/use-native-chat-resume-command.ts
  • src/renderer/src/components/right-sidebar/AiVaultPanel.tsx
  • src/renderer/src/components/right-sidebar/AiVaultPanelHeader.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.keyboard.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSidebarPanel.tsx
  • src/renderer/src/components/right-sidebar/AiVaultVirtualRow.tsx
  • src/renderer/src/components/right-sidebar/agent-session-history-modal.ts
  • src/renderer/src/components/right-sidebar/ai-vault-host-scope.ts
  • src/renderer/src/components/right-sidebar/ai-vault-original-pane-actions.ts
  • src/renderer/src/components/right-sidebar/ai-vault-panel-session-list-request.ts
  • src/renderer/src/components/right-sidebar/ai-vault-panel-workspace.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-chat-action.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-chat-action.ts
  • src/renderer/src/components/right-sidebar/right-sidebar-panel-content.tsx
  • src/renderer/src/components/right-sidebar/use-ai-vault-panel-session-resume.ts
  • src/renderer/src/components/right-sidebar/use-ai-vault-panel-workspace.ts
  • src/renderer/src/components/right-sidebar/use-ai-vault-search-focus-request.test.tsx
  • src/renderer/src/components/right-sidebar/use-ai-vault-search-focus-request.ts
  • src/renderer/src/components/right-sidebar/use-ai-vault-session-keyboard-navigation.ts
  • src/renderer/src/components/right-sidebar/use-persisted-ai-vault-view-options.test.tsx
  • src/renderer/src/components/right-sidebar/use-persisted-ai-vault-view-options.ts
  • src/renderer/src/components/tab-bar/tab-session-history-switch.parity.test.ts
  • src/renderer/src/components/ui/dialog.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/store/slices/ui/ui-slice-contract-contextual.ts
  • src/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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 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 win

Guard terminal resume actions per session.

handleResume has no in-flight guard. Two rapid non-repeat Enter events or repeated Play actions can call it twice. Each call can reach launchAiVaultSessionInNewTab, 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
📥 Commits

Reviewing files that changed from the base of the PR and between c4dae44 and 81c198e.

📒 Files selected for processing: 3
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.tsx
  • src/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.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Update: /resume now shows only the chat's own agent

What changed for the user. As requested, /resume in a Claude chat now opens Session History showing only Claude conversations. In an OpenCode chat it shows only OpenCode conversations, and every other agent works the same way. The filter is the panel's existing agent filter, so you can widen it right there in the dialog. It only applies to that dialog: your sidebar's saved filter is never read or changed, and the next /resume starts filtered to the chat's agent again.

Fixed along the way. OpenCode conversations are saved under two names in Session History, opencode and opencode2, and the current release uses opencode2. The first version of this filter only matched opencode, so an OpenCode chat's dialog opened empty. The filter now includes both names.

Also in this push: #28360 merged into main, so this PR now targets main, with current main merged in. Its diff contains only the /resume changes.

Verified on a separate Mac, in a real app:

  • In Claude and OpenCode chats, /resume showed only that agent's conversations.
  • Widening the filter in the dialog left the sidebar's filter unchanged; the sidebar was set to hide Pi beforehand.
  • Reopening /resume started filtered again.
  • Enter on a filtered row works as before.
  • The earlier focus fix holds: after opening with Send and closing, focus is back in the chat input.
  • /resume never reached any agent.
  • The screenshots are item 8 in Visual Proof.

Known limitation, already on main and not changed here. When the PI_CODING_AGENT_DIR environment variable is set, OMP keeps its conversations in Pi's folder, and Session History lists them as Pi. In that setup an OMP chat's /resume dialog opens empty until you widen the filter to Pi. Without that variable, OMP conversations are listed as OMP. The fix belongs in the session scanner, as a separate change.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 89238144-ac1f-4620-8664-515066d429a6
📥 Commits

Reviewing files that changed from the base of the PR and between 81c198e and 2c00e51.

📒 Files selected for processing: 15
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/use-native-chat-resume-command.ts
  • src/renderer/src/components/right-sidebar/AiVaultPanel.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSidebarPanel.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-panel-handle.ts
  • src/renderer/src/components/right-sidebar/use-ai-vault-session-keyboard-navigation.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/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.
@brennanb2025
brennanb2025 merged commit fc0d3d2 into main Oct 19, 2026
34 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/slash-resume-session-history branch October 19, 2026 04:40
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