Repository navigation
fix(native-chat): say each chat outcome once and drop internal-only surfaces - #24595
Conversation
…urfaces After a restart, resuming a chat reported the same outcome in up to four places: a toast, the chat's own note, the status bar entry and the resume dialog. Success also toasted, and a lost answer or unconfirmed dismissal raised toasts of their own. The chat's note and the status bar entry (which opens the dialog listing every affected chat) now carry it alone, and the resume guidance no longer talks about which process "owns this session". Provider events Orca does not recognise and that carry no words of their own are logged instead of journaled as raw "codex · notification:foo" rows. Rows with the provider's own sentence, failures, and records of replies Orca already sent stay. The approval card no longer shows the matched ask rule, its settings source or a "Blocked path" line; it keeps the request, its detail and the reason.
… drawn Dropping text-less provider events on the host also dropped Codex's turn/plan/updated row, which the task list (checklist and composer progress panel) is built from. The host now journals these rows exactly as before, and desktop and mobile chats leave out a row whose only text is the host's "provider · kind" label. Failures, notices, rows with the provider's own sentence and records of requests Orca answered still show. A hidden legacy Codex collab-call row still counts as the agent acting for which subagent section stays open. Claude's local slash command output is read from `content` for that one event kind only, so it shows as the row's text instead of disappearing.
|
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:
📝 WalkthroughWalkthroughApproval types and cards no longer include blocked paths or matched ask-rule details. Native chat filters wordless provider-frame rows, while Claude local-command output rows can use their content as row text. Generic Codex frame storage applies separate limits to wordless and drawn rows, and plan updates do not consume those limits. Restart actions consolidate explicit-click outcomes into one toast. The store tracks failed-to-send resume requests and refreshes the host offer. Codex collaboration call-frame rows count as output in the subagent live-frontier check. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 53.19% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 47 functions across 42 files. (6 skipped: 6 unsupported.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
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: 4b4bcaab-2185-4f33-8145-16a69583950a
📒 Files selected for processing (35)
mobile/src/session/MobileNativeChatPermission.test.tsmobile/src/session/MobileNativeChatPermission.tsxmobile/src/session/mobile-native-chat-permission.tsmobile/src/session/mobile-native-chat-render-data.test.tsmobile/src/session/mobile-native-chat-render-data.tsmobile/src/session/mobile-structured-agent-prompts.tssrc/main/codex/codex-structured-journal-translation-streams.test.tssrc/main/native-chat/agent-session-wire/provider-frame-disposition.tssrc/main/native-chat/agent-session-wire/unhandled-provider-frame.test.tssrc/main/native-chat/agent-session-wire/unhandled-provider-frame.tssrc/renderer/src/components/NativeChatResumeOnRestartModal.test.tsxsrc/renderer/src/components/native-chat-restart-action-notifications.test.tssrc/renderer/src/components/native-chat-restart-action-notifications.tssrc/renderer/src/components/native-chat-resume-failed-chat-watch.test.tssrc/renderer/src/components/native-chat-resume-failure-guidance.test.tssrc/renderer/src/components/native-chat-resume-failure-guidance.tssrc/renderer/src/components/native-chat-resume-on-restart-store.tssrc/renderer/src/components/native-chat/NativeChatApprovalCard.test.tsxsrc/renderer/src/components/native-chat/NativeChatApprovalCard.tsxsrc/renderer/src/components/native-chat/NativeChatMessageList.task-list-frames.test.tsxsrc/renderer/src/components/native-chat/NativeChatStructuredSession.tsxsrc/renderer/src/components/native-chat/native-chat-interactive-prompt.tssrc/renderer/src/components/native-chat/native-chat-subagent-delegation.tssrc/renderer/src/components/native-chat/native-chat-subagent-live-frontier.tssrc/renderer/src/components/status-bar/NativeChatResumeStatusSegment.test.tsxsrc/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/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/shared/native-chat-provider-frame-summary.tssrc/shared/native-chat-row-content.ts
💤 Files with no reviewable changes (6)
- mobile/src/session/mobile-structured-agent-prompts.ts
- src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
- src/renderer/src/i18n/en-runtime-required.json
- src/renderer/src/components/native-chat-resume-failed-chat-watch.test.ts
- src/renderer/src/components/native-chat-restart-action-notifications.test.ts
- src/renderer/src/components/native-chat-restart-action-notifications.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
| ).filter((message) => !isWordlessProviderFrameRow(message)) | ||
| } | ||
|
|
||
| /** Same rule as desktop: an unrecognised event with no words of its own is stored, not drawn. */ | ||
| function isWordlessProviderFrameRow(message: NativeChatMessage): boolean { | ||
| return message.blocks.length > 0 && message.blocks.every(isWordlessProviderFrameBlock) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '45,85p' mobile/src/session/mobile-native-chat-render-data.ts
sed -n '1,90p' src/shared/native-chat-provider-frame-summary.ts
rg -n 'foldMobileNativeChatMessages|isWordlessProviderFrameBlock' mobile/src/session src/sharedRepository: stablyai/orca
Length of output: 5667
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- mobile render data imports and body ---'
sed -n '1,180p' mobile/src/session/mobile-native-chat-render-data.ts
printf '%s\n' '--- mobile overlay ---'
sed -n '1,220p' mobile/src/session/MobileNativeChatOverlay.tsx
printf '%s\n' '--- desktop row content ---'
sed -n '1,180p' src/shared/native-chat-row-content.ts
printf '%s\n' '--- mobile row/render references ---'
rg -n -C 4 'blocks|NativeChatMessage|nativeChatRow|RowContent|providerFrame|foldMobileNativeChatMessages' mobile/src/session mobile/src -g '*.tsx' -g '*.ts'
printf '%s\n' '--- relevant tests ---'
sed -n '225,490p' mobile/src/session/mobile-native-chat-render-data.test.ts
printf '%s\n' '--- diff summary and changed hunks ---'
git diff --stat 3f37fcc423582b023dc6b9d7305a1056b655edbb c74299b479091c20cd532f5f655a00ef15bdfbd8
git diff --unified=25 3f37fcc423582b023dc6b9d7305a1056b655edbb c74299b479091c20cd532f5f655a00ef15bdfbd8 -- mobile/src/session/mobile-native-chat-render-data.ts src/shared/native-chat-row-content.ts src/shared/native-chat-provider-frame-summary.tsRepository: stablyai/orca
Length of output: 45645
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- mobile render data imports and body ---'
sed -n '1,180p' mobile/src/session/mobile-native-chat-render-data.ts
printf '%s\n' '--- mobile overlay ---'
sed -n '1,220p' mobile/src/session/MobileNativeChatOverlay.tsx
printf '%s\n' '--- desktop row content ---'
sed -n '1,180p' src/shared/native-chat-row-content.ts
printf '%s\n' '--- mobile row/render references ---'
rg -n -C 4 'blocks|NativeChatMessage|nativeChatRow|RowContent|providerFrame|foldMobileNativeChatMessages' mobile/src/session mobile/src -g '*.tsx' -g '*.ts'
printf '%s\n' '--- relevant tests ---'
sed -n '225,490p' mobile/src/session/mobile-native-chat-render-data.test.ts
printf '%s\n' '--- diff summary and changed hunks ---'
git diff --stat 3f37fcc423582b023dc6b9d7305a1056b655edbb c74299b479091c20cd532f5f655a00ef15bdfbd8
git diff --unified=25 3f37fcc423582b023dc6b9d7305a1056b655edbb c74299b479091c20cd532f5f655edbb -- mobile/src/session/mobile-native-chat-render-data.ts src/shared/native-chat-row-content.ts src/shared/native-chat-provider-frame-summary.tsRepository: stablyai/orca
Length of output: 45659
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- mobile view and message definitions ---'
fd -i 'MobileNativeChat(View|Message)' mobile/src/session
for f in $(fd -i 'MobileNativeChat(View|Message)' mobile/src/session | grep -E '\.(tsx|ts)$' | grep -v '\.test\.'); do
echo "--- $f ---"
wc -l "$f"
rg -n -C 8 'folded|messages|blocks|derive|map|MobileNativeChatMessage|NativeChatMessage' "$f"
done
printf '%s\n' '--- provider-frame construction and consumers ---'
rg -n -C 6 'providerFrame|unhandled-provider-frame|fallback|frame\.provider|frame\.kind' src mobile -g '*.ts' -g '*.tsx' | head -n 1000
printf '%s\n' '--- mixed provider-frame tests ---'
rg -n -C 8 'providerFrame|wordless|unrecognised|unrecognized|fallback label|fallback' src mobile -g '*.test.ts' -g '*.test.tsx' | head -n 1200Repository: stablyai/orca
Length of output: 41102
🏁 Script executed:
#!/bin/bash
for f in \
src/main/agent-session-wire/unhandled-provider-frame.ts \
src/main/agent-session-wire/unhandled-provider-frame.test.ts \
src/shared/native-chat-types.ts \
src/main/agent-session-wire/provider-frame-disposition.ts; do
if [ -f "$f" ]; then
echo "--- $f ---"
wc -l "$f"
cat -n "$f"
fi
done
printf '%s\n' '--- exact providerFrame references (source only) ---'
rg -n -C 5 'providerFrame' src mobile \
-g '*.ts' -g '*.tsx' \
-g '!*.test.ts' -g '!*.test.tsx' \
| grep -E 'providerFrame|unhandled-provider-frame|native-chat' | head -n 500
printf '%s\n' '--- exact unhandled-frame references and tests ---'
rg -n -C 8 'unhandled-provider-frame|UnhandledProvider|unhandled provider|provider frame' src mobile \
-g '*.ts' -g '*.tsx' \
| head -n 800Repository: stablyai/orca
Length of output: 41308
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- tool folding ---'
rg -n -C 12 'export function foldToolMessages|function foldToolMessages|foldToolMessages' src/shared mobile/src -g '*.ts' -g '*.tsx' | head -n 500
printf '%s\n' '--- structured projection ---'
fd -i 'structured-agent-session-projection' src mobile
for f in $(fd -i 'structured-agent-session-projection' src mobile | grep -E '\.(ts|tsx)$' | grep -v '\.test\.'); do
echo "--- $f ---"
rg -n -C 12 'projectStructuredItemToNativeChat|blocks|providerFrame|status|tool' "$f" | head -n 700
done
printf '%s\n' '--- native-chat assembly/projection references ---'
rg -n -C 10 'project.*NativeChat|NativeChatMessage|blocks:.*map|blocks: \[|body\.blocks|body\.text|journal.*body' src/main/native-chat src/shared -g '*.ts' -g '*.tsx' \
| head -n 1200
printf '%s\n' '--- unhandled frame body ---'
sed -n '80,190p' src/main/native-chat/agent-session-wire/unhandled-provider-frame.tsRepository: stablyai/orca
Length of output: 43204
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- locate projection files ---'
fd -i 'structured.*projection|journal.*projection|native-chat.*assembly|native-chat.*projection' src mobile
printf '%s\n' '--- projection symbols and status mapping ---'
rg -n -C 18 'projectStructuredItemToNativeChat|kind === .status.|body\.kind|status.*blocks|role:.*system|role:.*assistant' src/shared src/main/native-chat -g '*.ts' | head -n 1400
printf '%s\n' '--- message merge/dedup logic ---'
rg -n -C 12 'merge.*message|messages.*merge|blocks.*concat|concat\(.*blocks|dedup|deduplicate|turnId' src/shared src/main/native-chat -g '*.ts' | head -n 1400Repository: stablyai/orca
Length of output: 45661
🏁 Script executed:
#!/bin/bash
for f in \
src/shared/structured-agent-session-projection.ts \
src/shared/structured-agent-session-message-projection.ts \
src/shared/native-chat-tool-fold.ts \
src/main/native-chat/agent-session-wire/structured-agent-session-status-journal-projection.ts; do
echo "--- $f ---"
wc -l "$f"
cat -n "$f" | sed -n '1,260p'
doneRepository: stablyai/orca
Length of output: 28369
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- journal body types and schemas ---'
sed -n '230,330p' src/shared/agent-session-journal-types.ts
sed -n '50,105p' src/shared/agent-session-journal-schemas.ts
sed -n '235,275p' src/shared/agent-session-journal-schemas.ts
printf '%s\n' '--- status block ---'
cat -n src/shared/structured-agent-session-status-block.ts
printf '%s\n' '--- Codex generic frame aggregation ---'
sed -n '1,230p' src/main/codex/codex-structured-journal-generic-frames.ts
printf '%s\n' '--- all calls that append generic frame rows ---'
rg -n -C 12 'appendFrameRow|genericRowsByTurn|unhandledProviderFrameJournalItem' src/main/codex src/main/native-chat -g '*.ts' | head -n 1200Repository: stablyai/orca
Length of output: 43134
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- message item contract ---'
rg -n -C 20 'type AgentJournalMessageItem|AgentJournalMessageItem =|kind: .message.|blocks:' src/shared/agent-session-journal-types.ts | head -n 500
printf '%s\n' '--- message-item writers ---'
rg -n -C 12 'kind: .message.|appendItem\(.*message|body:.*blocks|blocks:.*providerFrame|providerFrame.*blocks' src/main src/shared -g '*.ts' | head -n 1000Repository: stablyai/orca
Length of output: 41832
Filter wordless provider blocks inside mixed rows.
foldMobileNativeChatMessages removes only rows whose blocks are all wordless provider-frame blocks. A valid journal message can contain that fallback block together with meaningful text or tool blocks, so the row survives. MobileNativeChatMessage then renders the fallback label. Desktop removes the wordless block before rendering. Apply the same block-level filter on mobile.
Suggested fix
- return stripNoiseMessages(
+ const folded = stripNoiseMessages(
foldToolMessages(normalizeImageTranscriptMessages(messages.filter(isRootAgentJournalItem)))
- ).filter((message) => !isWordlessProviderFrameRow(message))
+ )
+ return folded
+ .filter((message) => !isWordlessProviderFrameRow(message))
+ .map((message) => {
+ const blocks = message.blocks.filter((block) => !isWordlessProviderFrameBlock(block))
+ return blocks.length === message.blocks.length ? message : { ...message, blocks }
+ })
}There was a problem hiding this comment.
Important
The re-read that replaces the removed resume toasts is not a reliable backstop. When the dismiss (or continue) RPC fails and the follow-up read also fails, the offer is cleared from the status bar with no remaining surface — the inline note has the trace and the two call sites.
Reviewed changes
- Resume-after-restart toasts removed.
native-chat-restart-action-notifications.tsand its test are deleted;continueNativeChatRestartOffer/dismissNativeChatRestartOffernow publish only the host'ssessions/failedanswer, with the status-bar segment and each chat's own note as the reports. All 6 locales anden-runtime-required.jsondrop the orphaned keys. - Wordless unrecognised provider frames stored but not drawn. New
isWordlessProviderFrameBlockfilters blocks inderive()(desktop) and whole rows on mobile. The Codex task-list projection runs beforederive, so stored plan frames still become the checklist; failures, notices,request:rows, and Claudelocal_command_outputstay visible. Raw Codex collab-call rows are hidden but still count viaisNativeChatCodexCollabCallFrameRow. - Claude
local_command_outputtext. The frame'scontentbecomes the row sentence for that one kind. - Approval card drops
blockedPathandmatchedAskRulefrom both view types and both cards; the journal still records them, so the wire is unchanged.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
| @@ -343,7 +322,6 @@ export async function dismissNativeChatRestartOffer(sessionIds?: readonly string | |||
| } | |||
| } catch { | |||
| await refreshNativeChatRestartOffer() | |||
There was a problem hiding this comment.
The dismiss toast was replaced by the re-read putting the still-pending offer back in the status bar, but that replacement only works while the read succeeds. When the dismiss RPC fails and the follow-up read fails too (the correlated case on a dropped host connection), readNativeChatRestartOffer publishes EMPTY (lines 236-243), so the status bar empties, the offered-chat watch is released (lines 111-116), and the dialog has already closed — the dismissal looks like it succeeded and nothing resurfaces it until the next launch.
The identical hole exists in the continue catch at line 290, where an opted-in automatic launch has no dialog and, if the host never received the send, no in-chat note either.
Technical details
# Resume outcome goes silent when the re-read also fails
## Affected sites
- `src/renderer/src/components/native-chat-resume-on-restart-store.ts:324` — dismiss catch relies on `refreshNativeChatRestartOffer()` as the only report.
- `src/renderer/src/components/native-chat-resume-on-restart-store.ts:290` — continue catch, same reliance.
- `src/renderer/src/components/native-chat-resume-on-restart-store.ts:236-243` — a failed read publishes `{ ...EMPTY }`, clearing the offer.
- `src/renderer/src/components/native-chat-resume-on-restart-store.ts:111-116` — EMPTY releases the offered-chat watch, so there is no later re-read to restore it.
- `src/renderer/src/components/NativeChatResumeOnRestartModal.test.tsx:201-214` — the only coverage mocks `restartResumable` to succeed, so the double failure is untested.
## Required outcome
- An explicit dismiss/continue whose confirmation is lost must stay visible to the user until the host can be reached or the next launch — not silently vanish.
## Open questions for the human
- Is clearing the offer on a failed read intended even for an in-flight user action? Keeping the previous snapshot through a failed re-read during an action (or a minimal unconfirmed surface) would close this without reintroducing the toasts.…duplicate-surfaces
…lit a turn's work - Codex per-turn cap: a wordless provider row (decided by the same shared rule the clients use) has its own silent storage bound, so it no longer crowds out rows that draw and never produces a "N more provider notifications not shown" line about rows nobody sees. Plan updates are exempt from the cap, so the task list keeps updating after a noisy turn. - A Claude local command's row an older host stored with only its label (/usage output in the payload) stays drawn instead of disappearing. - A settled turn whose only extra row draws nothing offers no expand arrow, and a wordless row no longer splits one tool run into two.
…so once, with Retry When the resume request fails before the host reserved anything (the host is not ready, or its recovery record cannot be written), the host has nothing to record, and the chats used to fall silently back to "N chats to resume". The status bar and dialog now show them as failed, with the existing guidance and Retry, until Retry, Dismiss, a host answer that no longer offers them, or a relaunch. Comments that still cited the removed toast are corrected.
There was a problem hiding this comment.
ℹ️ No new issues in the commits since the last review. Changes are described below.
Reviewed changes
- Codex per-turn cap split by whether a client draws the row.
codex-structured-journal-generic-frames.tsnow tracks{ drawn, wordless }per turn. Wordless frames (decided by the sameisWordlessProviderFramethe clients use) get their own silent bound (MAX_CODEX_WORDLESS_ROWS_PER_TURN = 8) and are dropped without a suppression summary, so they no longer crowd out rows a chat draws; plan updates are exempt from both caps so the task list keeps updating after a noisy turn. Errors still bypass the cap. - Wordless rows no longer split work.
isUndrawnProviderFrameMessage(native-chat-tool-fold.ts) keeps a wordless frame from resetting the fold target, so it no longer splits one tool run into two (a plan update still splits, since it draws as the checklist). A newdrawsfield innative-chat-turn-fold.ts(fed fromnative-chat-transcript-slots.ts) stops a turn whose only extra row draws nothing from offering an expand arrow that opens onto nothing. - Older-host Claude local-command rows stay drawn.
isWordlessProviderFrameexcludesmessage:system:local_command_output, so a row an older host stored with only the fallback label remains visible; the rule was factored intoisWordlessProviderFrame(row) /isWordlessProviderFrameBlock/isWordlessProviderFrameMessage. - A lost resume request is reported once, with Retry. New
native-chat-resume-unsent-requests.tsmarks the chats a rejectedrestartContinuenamed;withUnsentResumes(called frompublishAnswer) moves any still-offered marked chat fromcandidatestofailedwithoutcome:'refused',reason:'agent_session_restart_request_failed',retryable:true, so the status bar and dialog show them with Retry. The follow-up re-read is the discriminator: a chat the host actually processed is no longer offered, so its mark drops and no false Retry appears.forgetUnsentResumesclears marks on Retry/Dismiss/reset. - Comment-only corrections in
structured-agent-session-restart-continuation.ts,structured-agent-session-restart-failure-ledger.ts,shared/agent-session-restart-continuation.ts, andprovider-frame-disposition.tsnow that the resume toasts are gone.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
…chat marked - Mobile draws no task list, so it now drops wordless provider rows, plan updates included, before folding tool runs; a mid-run plan update no longer leaves two run headers back to back. - A Dismiss the host never took keeps a lost resume request's chat shown as failed instead of turning it back into a plain offer. The lost request's real error now goes to the renderer log, since the row carries this side's own reason code. - Comments corrected: the Codex cap no longer claims dropped wordless rows stay countable, and the resume comments cover a chat a lost request never reached.
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 · Do not charge error-surface frames against the… · codex-structured-journal-generic-frames.ts:154-161
src/main/codex/codex-structured-journal-generic-frames.ts:154-161
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winDo not charge error-surface frames against the drawn quota.
error-surfaceframes bypass the drawn-row cap, but the successful append still incrementsrows.drawn. After eight accepted error frames in one turn, a later ordinary drawn frame is suppressed before reaching its own limit.Suggested fix
- isPlan + isPlan || isError ? rows : wordless
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
05426416-a7dd-4396-b144-c0d2a32bf0d7
📒 Files selected for processing (8)
mobile/src/session/mobile-native-chat-render-data.test.tsmobile/src/session/mobile-native-chat-render-data.tssrc/main/codex/codex-structured-journal-generic-frames.tssrc/renderer/src/components/NativeChatResumeFailureDetails.tsxsrc/renderer/src/components/NativeChatResumeOnRestartModal.test.tsxsrc/renderer/src/components/native-chat-resume-on-restart-grouping.tssrc/renderer/src/components/native-chat-resume-on-restart-store.tssrc/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx
🚧 Files skipped from review as they are similar to previous changes (2)
- src/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx
- src/main/codex/codex-structured-journal-generic-frames.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.
There was a problem hiding this comment.
ℹ️ No new issues in the commits since the last review. The earlier review's concern about the follow-up read failing after a lost dismiss/continue is still open (tracked in that thread); no new inline feedback.
Reviewed changes
- Mobile folds tool runs without a hidden plan update splitting them.
foldMobileNativeChatMessagesnow drops wordless provider rows — plan updates included, since mobile draws no task list — beforefoldToolMessagesinstead of after, so a mid-run plan update no longer leaves two back-to-back run headers. A new test pins the one-run behavior. - A Dismiss the host never took keeps a lost-resume chat marked failed.
dismissNativeChatRestartOffermovedforgetUnsentResumes(sessionIds)to after the RPC succeeds, so the catch's re-read re-applies the still-present mark instead of turning the chat back into a plain offer. Covered by a new test. - The lost resume request's real error goes to the renderer log.
continueNativeChatRestartOffer's catch nowconsole.warns it, since the row only carries this side's own reason code. - Comment corrections in the Codex row cap, the resume failure/grouping types,
NativeChatResumeFailureDetails, and the status segment now match behavior.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Review summaryThe problem. The native chat said some things more than once, and some things in Orca's internal terms.
What changes for you.
What the review fixed.
Deferred (none block this PR).
What was verified.
What wasn't verified.
|
…duplicate-surfaces # Conflicts: # mobile/src/session/mobile-native-chat-permission.ts
…oast Clicking Resume in the dialog (or Retry on a row) closes the dialog and acts on chats that are mostly off-screen, and nothing said what happened. One toast now summarises that click: "Resumed N chats and asked them to continue", "N chats couldn't be resumed" with Show (opens the dialog), "Couldn't confirm N chats were resumed", or the mixed case in the same toast. A request lost before it reached the chats counts its chats as not resumed. An opted-in automatic resume at launch raises no toast; dismissal and other bookkeeping stay silent.
There was a problem hiding this comment.
ℹ️ No critical issues in the new commit — the reworked one-toast-per-click logic is sound and well covered; one description nit in Nitpicks below.
Reviewed changes
- One toast per Resume click, replacing the earlier no-toast direction.
native-chat-restart-action-notifications.tsis re-created with a rewrittenannounceRestartResults/announceClick: a dialog Resume or a row Retry raises exactly one toast (a success count, a refused count withShow, an unconfirmed count, or a mixed toast carrying the other counts as block lines). An opted-in automatic launch and a Dismiss still raise none. - Store wiring for the click summary.
continueNativeChatRestartOffernow builds the summary in both the success and the lost-request paths and announces it only whensessionIdsnames chats; the toast'sdismisscancel action and the standalone unconfirmed/dismiss toasts are gone. - Locale updates.
continuedOne/continuedManyadded to the five non-English locales;dismiss,continueUnconfirmed*, anddismissUnconfirmeddropped from all locales anden-runtime-required.json. The main-process continuation comment no longer references the toast.
ℹ️ Nitpicks
- The PR description still says "Orca shows no toast for any resume outcome" and that
native-chat-restart-action-notifications.tswas deleted, along with its strings in every locale.4641f1dereverses that: the module is back and a Resume click (or row Retry) raises one toast. The resume "Mechanism" and "Differences from the common pattern" sections now describe the previous revision, so a reviewer following the description will be misled — worth refreshing before merge.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
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:
04978721-250e-44ab-b088-5a05d314379a
📒 Files selected for processing (13)
src/main/native-chat/agent-session-wire/structured-agent-session-restart-continuation.tssrc/renderer/src/components/NativeChatResumeOnRestartModal.test.tsxsrc/renderer/src/components/native-chat-restart-action-notifications.test.tssrc/renderer/src/components/native-chat-restart-action-notifications.tssrc/renderer/src/components/native-chat-resume-on-restart-click-toast.test.tssrc/renderer/src/components/native-chat-resume-on-restart-store.tssrc/renderer/src/components/status-bar/NativeChatResumeStatusSegment.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.json
🚧 Files skipped from review as they are similar to previous changes (8)
- src/main/native-chat/agent-session-wire/structured-agent-session-restart-continuation.ts
- src/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/en.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; 1 remain after this review.
| const seenCarryingOn = notContinued.filter( | ||
| (sessionId) => !reported.includes(sessionId) && sentUnconfirmed(sessionId) | ||
| (sessionId) => hostFailed !== undefined && !failed.has(sessionId) && sentUnconfirmed(sessionId) | ||
| ) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- PR diff ---'
git diff --unified=25 3284b4c70c901402831bb4ccc5576ea083d2e5ae 4641f1de37e4907b484bf3c7c91ca22cf1d848cb -- src/renderer/src/components/native-chat-restart-action-notifications.ts
printf '%s\n' '--- target at reviewed head ---'
git show 4641f1de37e4907b484bf3c7c91ca22cf1d848cb:src/renderer/src/components/native-chat-restart-action-notifications.ts | nl -ba | sed -n '1,240p'
printf '%s\n' '--- outcome declarations and notification callers ---'
rg -n -C 4 'announceRestartResults|RestartContinuationOutcome|hostFailed|reportedResults' src
printf '%s\n' '--- sessions/reconciliation host response references ---'
rg -n -C 3 'sessions.*(pending|unknown)|(pending|unknown).*sessions|RestartContinuationOutcome|continuation.*outcome|restart.*result' srcRepository: stablyai/orca
Length of output: 42259
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- renderer store relevant section ---'
nl -ba src/renderer/src/components/native-chat-resume-on-restart-store.ts | sed -n '210,345p'
printf '%s\n' '--- host implementation relevant section ---'
nl -ba src/main/native-chat/agent-session-wire/structured-agent-session-restart-resume-host.ts | sed -n '1,330p'
printf '%s\n' '--- notification tests ---'
nl -ba src/renderer/src/components/native-chat-restart-action-notifications.test.ts | sed -n '1,240p'Repository: stablyai/orca
Length of output: 29622
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- failure ledger outline and relevant logic ---'
ast-grep outline src/main/native-chat/agent-session-wire/structured-agent-session-restart-failure-ledger.ts
rg -n -C 7 'settle|failureAfterResume|unconfirmed|unknown|pending|list:' src/main/native-chat/agent-session-wire/structured-agent-session-restart-failure-ledger.ts
printf '%s\n' '--- continuation outcome declarations and verdict logic ---'
rg -n -C 5 'StructuredAgentSessionContinuationOutcome|outcome: .(pending|unknown|continued)|pending|unknown|verdict' src/main/native-chat/agent-session-wire/structured-agent-session-restart-continuation.ts src/main/native-chat/agent-session-wire/structured-agent-session-restart-resume-runner.ts
printf '%s\n' '--- candidate reader ---'
nl -ba src/main/native-chat/agent-session-wire/structured-agent-session-restart-candidates.ts | sed -n '1,240p'Repository: stablyai/orca
Length of output: 32711
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- failure ledger full relevant implementation ---'
nl -ba src/main/native-chat/agent-session-wire/structured-agent-session-restart-failure-ledger.ts | sed -n '1,220p'
printf '%s\n' '--- candidate/resumable set rules ---'
nl -ba src/main/native-chat/agent-session-wire/structured-agent-session-restart-resume-set.ts | sed -n '1,260p'
printf '%s\n' '--- restart host reconciliation tests mentioning pending/unknown/failures/sessions ---'
rg -n -C 5 'pending|unknown|unconfirmed|failed|sessions' src/main/native-chat/agent-session-wire/structured-agent-session-restart-resume-host.test.ts src/main/native-chat/agent-session-wire/structured-agent-session-restart*test.tsRepository: stablyai/orca
Length of output: 42407
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- capsule implementation locations ---'
rg -n -C 5 'class AgentSessionRecoveryCapsule|failResume\(|rollbackResume\(|completeResume\(' src/main
printf '%s\n' '--- capsule failure/rollback tests ---'
rg -n -C 6 'failResume|rollbackResume|completeResume|failure.*write|recording.*failure|throw.*fail' src/main/native-chat src/main/runtime
printf '%s\n' '--- production restart host capsule binding ---'
rg -n -C 6 'recoveryCapsule|createStructuredAgentSessionRestartResume' src/main/native-chat/agent-session-wireRepository: stablyai/orca
Length of output: 45667
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- recovery capsule mutation methods ---'
nl -ba src/main/runtime/agent-session-recovery-capsule.ts | sed -n '125,215p;255,292p'
printf '%s\n' '--- publication-failure tests ---'
nl -ba src/main/runtime/agent-session-recovery-capsule.test.ts | sed -n '45,62p;550,610p'
printf '%s\n' '--- production recovery capsule binding ---'
rg -n -C 4 'recoveryCapsule:' src/main
printf '%s\n' '--- store notification and reconciliation call ---'
nl -ba src/renderer/src/components/native-chat-resume-on-restart-store.ts | sed -n '278,318p'Repository: stablyai/orca
Length of output: 16336
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- store imports and local types ---'
nl -ba src/renderer/src/components/native-chat-resume-on-restart-store.ts | sed -n '1,75p'
printf '%s\n' '--- resume candidate type declaration ---'
rg -n -C 3 'export type ResumeCandidate|export interface ResumeCandidate|type ResumeFailure|export type ResumeFailure' src/renderer/src/components/native-chat-resume-on-restart-grouping.tsRepository: stablyai/orca
Length of output: 4486
Keep still-offered pending or unknown chats unconfirmed.
When writing a pending or unknown outcome to the recovery capsule fails, settlement can roll the offer back. The host can then return the chat in sessions without a failed row. The store discards those remaining candidates, so seenCarryingOn can count the chat as resumed while its offer remains. Pass candidate IDs from both the action response and reconciliation refresh to announceRestartResults, and count a still-offered pending or unknown chat as unconfirmed.
Suggested fix
diff --git a/src/renderer/src/components/native-chat-restart-action-notifications.ts b/src/renderer/src/components/native-chat-restart-action-notifications.ts
@@
hostFailed: readonly Pick<ResumeFailure, 'sessionId' | 'outcome'>[] | undefined,
- show: () => void
+ show: () => void,
+ remainingSessionIds?: readonly string[]
): void {
@@
const notContinued = restartChatsNotContinued(requested, results)
const failed = new Map(hostFailed?.map((failure) => [failure.sessionId, failure.outcome]))
+ const remaining = new Set(remainingSessionIds ?? [])
+ const outcomes = new Map(results.map((result) => [result.sessionId, result.outcome]))
+ const sentUnconfirmed = (sessionId: string): boolean =>
+ outcomes.get(sessionId) === 'pending' || outcomes.get(sessionId) === 'unknown'
// A host that lists failures has already dropped chats that moved on by themselves or that the
// user answered; counting those would report a failure nothing on screen can show.
const reported =
hostFailed === undefined
? notContinued
- : notContinued.filter((sessionId) => failed.has(sessionId))
- const outcomes = new Map(results.map((result) => [result.sessionId, result.outcome]))
- const sentUnconfirmed = (sessionId: string): boolean =>
- outcomes.get(sessionId) === 'pending' || outcomes.get(sessionId) === 'unknown'
- // An unconfirmed send the host no longer lists was seen carrying on (or answered by the user), so
+ : notContinued.filter(
+ (sessionId) => failed.has(sessionId) || (remaining.has(sessionId) && sentUnconfirmed(sessionId))
+ )
+ // An unconfirmed send the host lists as neither failed nor still offered was seen carrying on (or answered by the user), so
// it was resumed and asked to continue; left out of both counts, the click would say nothing.
const seenCarryingOn = notContinued.filter(
- (sessionId) => hostFailed !== undefined && !failed.has(sessionId) && sentUnconfirmed(sessionId)
+ (sessionId) =>
+ hostFailed !== undefined &&
+ !failed.has(sessionId) &&
+ !remaining.has(sessionId) &&
+ sentUnconfirmed(sessionId)
)
diff --git a/src/renderer/src/components/native-chat-resume-on-restart-store.ts b/src/renderer/src/components/native-chat-resume-on-restart-store.ts
@@
>(LOCAL, 'agentSession.restartContinue', sessionIds ? { sessionIds } : {})
const failed = failedFrom(result)
+ let remainingSessionIds: readonly string[]
if (Array.isArray(result.sessions)) {
- publishAnswer({ candidates: result.sessions, failed, listedAt: Date.now() })
+ const candidates = result.sessions as ResumeCandidate[]
+ publishAnswer({ candidates, failed, listedAt: Date.now() })
+ remainingSessionIds = candidates.map(({ sessionId }) => sessionId)
} else {
- await refreshNativeChatRestartOffer()
+ const refreshed = await refreshNativeChatRestartOffer()
+ remainingSessionIds = refreshed.candidates.map(({ sessionId }) => sessionId)
}
const listed = Array.isArray(result.failed) ? failed : undefined
- outcome = [batch, result.continued, listed, requestNativeChatResumeOnRestartDialog]
+ outcome = [
+ batch,
+ result.continued,
+ listed,
+ requestNativeChatResumeOnRestartDialog,
+ remainingSessionIds
+ ]| markUnsentResumes(batch, Date.now()) | ||
| const read = await readNativeChatRestartOffer() | ||
| // Nothing reached the chats, so each is a failure of this click as the list now shows it. | ||
| const listed = read.available ? offer.failed : undefined | ||
| outcome = [batch, [], listed, requestNativeChatResumeOnRestartDialog] |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
#!/bin/bash
set -o pipefail
git diff --unified=18 3284b4c70c901402831bb4ccc5576ea083d2e5ae 4641f1de37e4907b484bf3c7c91ca22cf1d848cb -- src/renderer/src/components/native-chat-resume-on-restart-store.ts
printf '\n--- current focused source ---\n'
sed -n '220,345p' src/renderer/src/components/native-chat-resume-on-restart-store.ts
printf '\n--- callRuntimeRpc bindings and declarations ---\n'
rg -n -C 4 'callRuntimeRpc' srcRepository: stablyai/orca
Length of output: 45655
🏁 Script executed:
#!/bin/bash
set -o pipefail
printf '%s\n' '--- RPC client ---'
sed -n '1,260p' src/renderer/src/runtime/runtime-rpc-client.ts
printf '%s\n' '--- structured session wrapper ---'
sed -n '1,220p' src/renderer/src/runtime/structured-agent-session-client.ts
printf '%s\n' '--- restart RPC handlers ---'
rg -n -C 5 'agentSession\.restartContinue|restartContinue' src
printf '%s\n' '--- unsent and result/retry helpers ---'
rg -n -C 4 'markUnsentResumes|withUnsentResumes|forgetUnsentResumes|announceRestartResults|Retry' src/renderer/src/components/native-chat-resume-unsent-requests.ts src/renderer/src/components/native-chat-restart-action-notifications.ts src/renderer/src/components/native-chat-resume-on-restart-store.tsRepository: stablyai/orca
Length of output: 42766
🏁 Script executed:
#!/bin/bash
set -o pipefail
printf '%s\n' '--- restart handler ---'
sed -n '1,180p' src/main/runtime/rpc/methods/structured-agent-session-restart-resume.ts
printf '%s\n' '--- local runtime call declarations/implementations ---'
rg -n -C 8 'runtime\.call|runtimeCall|runtimeCall' src/main src/preload src/shared | head -n 260
printf '%s\n' '--- unsent helper and notification implementation ---'
sed -n '1,190p' src/renderer/src/components/native-chat-resume-unsent-requests.ts
sed -n '100,180p' src/renderer/src/components/native-chat-restart-action-notifications.tsRepository: stablyai/orca
Length of output: 33577
🏁 Script executed:
#!/bin/bash
set -o pipefail
printf '%s\n' '--- continuation implementation ---'
rg -n -C 8 'continueAfterRestart' src/main src
printf '%s\n' '--- runtime API bridge declarations and IPC bindings ---'
rg -n -C 6 'runtime\.call|runtime:call|runtimeCall' src/preload src/main/window src/main/runtime
printf '%s\n' '--- local runtime RPC dispatch and response ---'
rg -n -C 5 'dispatchRuntimeRpc|handleRuntimeRpc|dispatch.*Rpc|RuntimeRpcResponse|callRuntimeRpc' src/main/runtime/rpc src/main/window | head -n 260Repository: stablyai/orca
Length of output: 45661
🏁 Script executed:
#!/bin/bash
set -o pipefail
printf '%s\n' '--- non-test restart continuation definitions ---'
rg -n -C 5 --glob '!*.test.*' --glob '!**/__tests__/**' 'continueAfterRestart' src/main/native-chat src/main
printf '%s\n' '--- runtime preload/window files ---'
git ls-files | rg '(^|/)(preload|runtime-rpc|runtime.*bridge|window-api)' | head -n 100
printf '%s\n' '--- local invoke binding and runtime dispatch references (production only) ---'
rg -n -C 5 --glob '!*.test.*' --glob '!**/__tests__/**' 'runtime\.call|runtimeCall|ipcMain\.handle.*runtime|runtime\.call' src/main src/preload 2>/dev/null | head -n 220Repository: stablyai/orca
Length of output: 39743
🏁 Script executed:
#!/bin/bash
set -o pipefail
printf '%s\n' '--- restart service implementation ---'
sed -n '210,315p' src/main/native-chat/agent-session-wire/structured-agent-session-restart-resume-host.ts
printf '%s\n' '--- runtime IPC channel binding ---'
rg -n -C 5 'runtime:call|runtime\.call|callRuntimeRpc' src/preload src/main/ipc --glob '!*.test.*' | head -n 180
printf '%s\n' '--- runtime API preload source names ---'
git ls-files src/preload | rg 'runtime'Repository: stablyai/orca
Length of output: 10273
🏁 Script executed:
#!/bin/bash
set -o pipefail
printf '%s\n' '--- restart service action pipeline ---'
sed -n '100,245p' src/main/native-chat/agent-session-wire/structured-agent-session-restart-resume-host.ts
printf '%s\n' '--- main runtime:call handler ---'
sed -n '58,125p' src/main/ipc/runtime.tsRepository: stablyai/orca
Length of output: 9024
Keep rejected resume requests unconfirmed.
restartContinue can perform continuation work before a later host operation rejects. The renderer then marks every selected chat as unsent and exposes it as a retryable refusal. Retry can submit work that may already have been processed.
Do not create an unsent mark for an ambiguous RPC failure. Report the result as unknown until a host answer establishes non-delivery.
🐛 Suggested fix
import {
forgetUnsentResumes,
- markUnsentResumes,
withUnsentResumes
} from './native-chat-resume-unsent-requests'
...
} catch (error) {
// The row's reason is this side's own code, so the real error is kept in the log.
console.warn('[native-chat-resume] resume request failed before reaching the chats', error)
- markUnsentResumes(batch, Date.now())
const read = await readNativeChatRestartOffer()
- // Nothing reached the chats, so each is a failure of this click as the list now shows it.
+ const uncertain = batch.map((sessionId) => ({ sessionId, outcome: 'unknown' as const }))
const listed = read.available ? offer.failed : undefined
- outcome = [batch, [], listed, requestNativeChatResumeOnRestartDialog]
+ outcome = [batch, uncertain, listed, requestNativeChatResumeOnRestartDialog]…ix toast translations Show could open nothing when the host retired the failure while the toast was up, because the dialog draws nothing without rows and the request stayed latched. Show now goes through the status bar entry's re-read-then-open path, moved into the store so both use it. The French, Japanese, Korean and Chinese "Resumed N chats and asked them to continue" strings are rewritten to match their sibling strings. Tests pin Show on the toast of a lost resume request whose chats the re-read still lists.
There was a problem hiding this comment.
ℹ️ No new issues in the commits since the last review. The changed behavior is intentional and covered by tests that fail against the old code.
Reviewed changes
Showon the Resume toast re-reads the host first. Both the toast'sShowaction and the status-bar entry now call a newreopenNativeChatRestartOffer, which skips the read while a resume is in flight and otherwise re-reads the durable offer, opening the dialog only when the fresh answer still lists candidates or failures — so a failure the host has since retired opens nothing.- The status bar's private reopen logic moved into the store.
refreshNativeChatRestartOfferis collapsed to aPromise<void>re-read, andNativeChatResumeStatusSegment's localreopenOfferis deleted in favour of the shared helper, removing the duplicated race guard. - Corrected the
continuedOne/continuedManytoast strings in French, Japanese, Korean, and Simplified Chinese;eswas already correct.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
The tests reached sonner's action handler with Reflect.apply, which the anti-slop lint rejects. One test-support helper now returns the last toast's Show as a typed click.
Follow-up: the Resume click gets its toast backWhy: after the first review, nothing told you what a Resume click did. That click acts on chats that are mostly off-screen, so with no toast it gave no visible feedback. What changed for you:
Also in this update:
Deferred, both rare:
Verified:
|
…duplicate-surfaces
…esn't show it The approval card dropped Claude's blocked path along with the ask rule, so a request like `git push` that needs access to `.git/config` no longer said what it touches. Bring the path back as "Needs access to: <path>", only when the description, reason or request detail doesn't already show it (verbatim or JSON-escaped). One shared rule serves desktop and mobile; the ask rule stays out.
…mes the whole path '/srv/data' inside '/srv/data-old/x' hid the "Needs access to" line although the path itself was never shown. A match now needs the next character to end the path: end of text, whitespace, a quote or a separator. Also pin that the desktop approval mapping passes the blocked path through and drops the ask rule.
Follow-up: the approval card shows the path again, in plain wordsWhy: the first review removed both "Ask rule: …" and "Blocked path: …" from Claude's approval card. The path is what the request touches, and you often can't see it in the command. For example, a What changed for you:
How it decides: one shared check is used by both cards. It looks for the exact path, or its escaped form inside the request detail, appearing as a whole path in the description, the reason or the detail. A path that is only the start of a longer one ( Also: merged current main, with no conflicts. Verified:
Not verified:
|
There was a problem hiding this comment.
ℹ️ No new issues in the commits since the last review. The approval-path helper and its wiring are sound and well covered; the earlier concern about a lost dismiss/continue whose follow-up read also fails is still open in its thread.
Reviewed changes
Reviewed the two commits added since the last pullfrog review — afccd88c4d and 818c635afd — which restore the path a blocked approval needs.
- Blocked path named only when the request does not show it. New
approvalBlockedPathToShow(src/shared/agent-session-approval-blocked-path.ts) returns the path when the description, the reason, and the drawn detail/plan text all lack it, verbatim or JSON-escaped; bothNativeChatApprovalCardandMobileNativeChatPermissioncall it and renderNeeds access to: <path>.blockedPathis threaded through the structured-session and mobile permission projections, and the ask rule stays dropped. - A match must name the whole path.
containsWholePathaccepts only an occurrence followed by end-of-text, whitespace, a quote, or a separator, so/srv/datainside/srv/data-old/xno longer suppresses the line. The helper test fails against the previoustext.includes(form). - Tests pin the card contract. New unit tests cover the helper and both cards, and
NativeChatStructuredSession.test.tsxasserts the blocked path reaches the card whilematchedAskRulenever does.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
…duplicate-surfaces Conflicts resolved: - NativeChatApprovalCard.tsx / MobileNativeChatPermission.tsx: keep main's newer-subject handling (disabled options, "needs a newer version" line, isPlanApprovalSubject) beside this branch's "Needs access to" line; mobile passes newerSubject into the context sub-component. - approvalBlockedPathToShow checks plan text only for a plan subject; a newer Orca's subject draws the detail, so the detail is what it checks. - en/es locales: JSON 3-way merge; es drops the approval and resume keys en no longer has.
…duplicate-surfaces
There was a problem hiding this comment.
ℹ️ No new issues in the two merge-only commits since the last review. The branch now carries main's newer-Orca approval-subject handling, and the merge resolution preserves this PR's own changes.
Reviewed changes
Reviewed the two commits added since the last pullfrog review — 63c24dcb68 and a51932420b, both merges of origin/main — which pull main's 98171a8934 approval-subject refactor into this PR's touched surfaces.
- Adopted main's approval-subject narrowing in both cards.
NativeChatApprovalCardandMobileNativeChatPermissionnow narrow withisPlanApprovalSubject, and disable every answer (keeping the card's cancel) for a subject kind this build cannot draw, drawing the approval'sdetailplus "This request needs a newer version of Orca." This is main's behavior inherited through the merge, not a change to this PR's own logic. - Kept
approvalBlockedPathToShowaligned with the new narrowing. The helper narrows throughisPlanApprovalSubjectinstead of an inlinesubject?.kind === 'plan', so the needed-path line and the newer-subject line coexist correctly; the/srv/data-oldwhole-path rule is unchanged. - No PR-authored change since the prior review.
git diff 818c635afd..a51932420brestricted to the PR files shows only main's refactor; the PR's own changes (needed path, ask-rule removal, one toast per Resume click, wordless-frame hiding) are unchanged. The desktop card/helper/structured-session and mobile permission suites pass.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
…duplicate-surfaces
CI status after merging main (
|
…tcome toast as a click An opted-in launch resume now calls the same announce as a clicked Resume, with the same copy: how many resumed, how many couldn't (with Show), unconfirmed, or mixed, said once. Dismiss and bookkeeping stay silent; a launch whose chats all moved on raises nothing.
Each chat's own note already says Orca asked it to continue, so the toast drops "and asked it/them to continue" in every locale; the couldn't-resume and couldn't-confirm counts and Show are unchanged.
…2025/chat-ui-duplicate-surfaces
…5/chat-ui-duplicate-surfaces Conflicts: main moved the approval mapping into chatApprovalFromJournal (#24369); it now omits the ask rule as this branch's card does.
…2025/chat-ui-duplicate-surfaces
Brings #24595 (say each chat outcome once). Paired machines follow its outcome model: one toast per resume across every machine it reached (clicked, a row's Retry, the reconnect offer's Resume, or an automatic resume), no toast for Dismiss or bookkeeping, and a resume request lost before it reached a machine marks that machine's chats failed until a host answer, Retry, a successful Dismiss, or a re-pair ends it. The status bar entry and every Show re-read before the dialog lists them.

ELI5
The native chat was telling you the same thing several times, and sometimes in words that only make sense to Orca's own internals. This removes the repeats and the internal-only bits, so each thing is said once, in the place you'd look for it.
What Changed
1. Resuming chats after Orca restarts
native-chat-restart-action-notifications.tsnow builds only the one outcome toast for a resume, whether clicked or automatic at launch. Its bookkeeping toasts are deleted, along with their strings in every locale.continueNativeChatRestartOfferraises the toast for every resume, clicked or automatic at launch, after the host's answer is published, so its counts match the status bar and the dialog.native-chat-resume-unsent-requests.ts).2. Unrecognised agent events with no text
request:rows, such as a declined MCP request);/usageand similar). It arrives in acontentfield, and the host now uses that as the row's text. Rows saved before this change, or written by an older host, still show as they did.isWordlessProviderFrame(src/shared/native-chat-provider-frame-summary.ts), decides what counts as text-less. It matches a row whose only text is the host's "provider · kind" fallback label, minus the exceptions above.native-chat-row-content.ts). That is also where the transcript decides whether a row takes a slot, so a hidden row leaves no gap. The task list is built before that step.3. Approval card
git pushthat needs.git/configshows it; acatof that exact file doesn't repeat it. The ask rule is gone.NativeChatApprovalCardandMobileNativeChatPermission, and its field is dropped from the view types the cards are built from.approvalBlockedPathToShow(src/shared/agent-session-approval-blocked-path.ts), decides whether the path is already visible: the exact path, or its JSON-escaped form, appears as a whole path in the description, the reason, or the request detail. Both cards use it.Why
Chat UI should say a failure once, in one place, and never in Orca's internal terms. It shouldn't add messages the common pattern doesn't show unless Orca has a real need for them. The resume flow said every outcome several times. The raw provider rows and the ask-rule line showed internal or settings data you can't act on.
Differences from the common pattern
Linked Issue
N/A (internal native-chat cleanup).
Visual Proof
Captured in two hidden, isolated test builds of Orca with a stand-in Claude agent (no real agent or account). A separate non-Claude test agent drove the app and took the screenshots. The two resume pairs (the first and the last) were re-taken after the Resume toast came back, on the M4Air test Mac: before =
3284b4c70c9(where this PR now branches frommain), after = this PR at4641f1de37e, driven by Grok. The other five pairs were taken earlier on the Windows test machine: before =44a2ee54bbd, after =ece1efe30d9, driven by opencode with deepseek-v4.1-flash; the toast change doesn't touch what they show. Commits after4641f1de37eonly fix the restored toast's French, Japanese, Korean and Chinese wording, make Show re-read the list before opening the dialog, and fix a test lint error. None of that changes these screenshots.git push(the path isn't in the command). A re-capture on the Mac test machine was abandoned because that machine stayed overloaded. The new line is covered by the desktop and mobile card tests listed under Testing.Compared with the earlier set: those screenshots were taken on a Mac at
c74299b4790, before the review fixes. The unrecognised-events and approval-card pairs were re-taken and show the same result. The resume pair was re-taken and now shows the toast this PR keeps for a Resume you click. The last four pairs are new.Not captured: a Codex plan update still showing its task list, and the per-turn limit on Codex rows. The stand-in agent speaks only Claude's protocol, and no real agent was used.
Testing
New or updated tests. Each one fails against the code without its fix:
NativeChatResumeOnRestartModal.test.tsxchecks:native-chat-restart-action-notifications.test.tsandnative-chat-resume-on-restart-outcome-toast.test.tscheck the toast's counts and wording, and that a lost request with nothing to open has no Show.native-chat-resume-failure-guidance.test.tschecks that the resume guidance never says "owns", "process" or "session".NativeChatApprovalCard.test.tsx,MobileNativeChatPermission.test.ts,NativeChatStructuredSession.test.tsx,mobile-structured-agent-prompts-permission.test.tsandagent-session-approval-blocked-path.test.tscheck:codex-structured-journal-translation-streams.test.tschecks, through the real host translation:NativeChatMessageList.task-list-frames.test.tsx,native-chat-provider-frame-summary.test.tsandunhandled-provider-frame.test.tscheck:native-chat-tool-fold.test.ts,native-chat-turn-fold.test.tsandnative-chat-transcript-slots.test.tscheck:mobile-native-chat-render-data.test.tschecks:Ran locally:
oxlint, the changed-code quality gate, React Doctor, and the localization verify, extraction and coverage checks.Not run locally: the real Claude CLI suite. This PR doesn't touch the Claude structured-session code.
AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
blockedPathandmatchedAskRulestay in the journal schema and are still published. Older desktop and mobile builds keep showing both in their old wording. The new cards show the path in plain words and ignore the ask rule. Hiding text-less provider rows is done by the client, so it works against older hosts too. Older clients keep showing those rows until they update.tool_use_summaryandmemory_recall, which the common pattern hides as well. Today these show only as that label, with the text inside Details.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)