Skip to content

Attach a long paste as a text file, and say a message is too large before it is sent - #30398

Merged
brennanb2025 merged 26 commits into
mainfrom
brennanb2025/chat-big-paste
Oct 22, 2026
Merged

brennanb2025 merged 26 commits into
mainfrom
brennanb2025/chat-big-paste

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​416 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​414
Prod 47 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​744 $\color{#cf222e}{\Huge{\mathbf{−}}}$​51 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​693

Problem and user-facing change

Pasting a large log or diff into native chat could exceed the 256 KB message limit and produce a generic “send it again” notice. Large desktop pastes now become a “Pasted text” file pill that the agent can read. Messages that still exceed the limit get an explanation before sending, with the draft kept intact. Phone native chats gain that explanation and retention; phone paste-to-file is a follow-up.

How it works

An ordinary structured-chat paste becomes a file when it reaches 32 KiB in characters or UTF-8 bytes, or would make the outgoing message exceed its existing limit. The pill replaces the selected range immediately. Send waits while the file saves; completion records its path without changing the editor or moving the caret. Failure leaves a removable “Paste not saved” pill and explains recovery.

Files use the existing attachment store on the chat’s execution host. Accepted ordinary messages claim their files with the chat. Completed paths survive restart in one optional saved map; transient source bytes and upload status are not persisted. Completion updates only the original draft when its identity still survives there. Same-editor Undo retains completed paths through weakly held editor history. Copy, send and size prediction use the same projection to an ordinary file reference, including quoting and boundary spaces.

Admission measures the actual outgoing JSON/UTF-8 text and image blocks before handing over the draft. This preserves rich content, attachments and whitespace on refusal. Existing terminal text stays inline. Unknown or unsupported upload capability keeps fitting text inline and explains an oversized paste rather than attempting an unsupported upload. Folder workspaces, host ownership and mixed paired-server versions retain their existing routes.

The common pattern records attachment identity before I/O and settles completion independently of a mounted editor. This change uses that mechanism while retaining ordinary file-reference transport for existing hosts.

Intended differences and limits

  • Intended — existing host transport: completed pills become ordinary file paths; no new remote operation or message field. Internal paste identities never reach the agent.
  • Intended — existing inline surface: saving and unavailable states use the file pill and existing notice surface, without another attachment row or success toast.
  • Intended — restart and history: unfinished source bytes disappear on renderer restart. Completed Undo depends on the mounted editor; reopening can discard history. Removing a pill before completion can leave Redo unavailable. As on main, immediate successful Send followed by Undo does not always restore the whole draft.
  • Intended — Copy: pending pills copy original text, unavailable pills copy a readable label, and completed pills copy an ordinary file reference.
  • Intended — retention: unsent files can expire through the store’s existing 30-day sweep. Removing a pill does not immediately delete its file. A saved path does not guarantee that bytes still exist; ordinary Send uses the existing expired-attachment refusal.
  • Intended — goals: new goal-mode pastes stay inline under the existing 4,000-character limit. A file created in ordinary mode can still become a goal reference; the existing goal path does not claim it or check expiry.
  • Intended — reserved marker spelling: exact internal marker-looking clipboard/menu input becomes an unavailable pill with explained refusal. Character-typed or previously saved literal text can look literal while string consumers refuse it; arbitrary-literal support is not claimed.
  • Intended — size scope: composer sends and the ordinary sender are checked. The separate direct chat-creation API and transcript presentation remain outside this change.
  • Intended — browser boundary: structured browser paste is unavailable behind the existing support gates and was not exercised. Browser terminal pastes stay inline; no direct browser text-adapter test is claimed.
  • Temporary — phone conversion: turning phone pastes into files is the named follow-up after this PR, using the upload path already merged in feat(mobile): redesign the chat composer with file attachments and inline skills #30359.

Review and verification

Final head is e699f14fc0d43c45345022ca53f5b805b259b09c. Source review, independent accounting, whole-mechanism comparison, accepted Claude/Codex execution evidence and its applicability audit are complete. All older results below retain their actual tested head.

Six design review rounds are complete. The final bounded integration and whole-mechanism comparisons are clean on e699f14fc0d43c45345022ca53f5b805b259b09c. Independent accounting is 700 production / 416 test / 44 locale additions; conservative charges retain historical changes at 703 / 420 / 44, within the approved 705 production / 420 test caps and locale allowance. The full PR workflow and aggregate gate passed on this exact head: 25 successful checks, 22 skipped, none failed or pending. The owner cancelled the first mobile-web bundle attempt after it hung for about an hour; the failed/cancelled-job rerun passed in 15m14s. Other jobs had already passed on their first attempt. CI covers lint, typecheck and repository checks. The owner reports 49 targeted tests passed on predecessor f894; this is a receipt, not the review coordinator’s test execution.

Focused QA on f894, with ten embedded screenshots, passed its independent bounded evidence audit on exact f8940a6b33bbb438b96d5c371d41df248df95ac2 on macOS. Real Claude and Codex chats each answered before a full app stop; the same profile reopened both original histories. Each resumed chat then answered a short request and read a large pasted file, returning an exact marker absent from the question. The actual fixtures are 142,289 and 142,288 bytes; both fixture hashes and all 26 manifest screenshots independently match. The QA lead records saved-file equality. The audit found no contradiction or material missing evidence for these named flows. Saved-file equality, full launch environment, Codex provider identity after restart and cleanup remain corroborated driver/lead receipts; the copied evidence does not include raw profile files, post-restart databases or a launcher/event log for independent replay. qa-drive used opencode-go after Codex timed out and Grok was signed out; Claude and Codex were the real agents under test. Nine monitored real-config path records were unchanged (four existing hashes and five missing files), and the lead records both app trees stopped. The first Codex reply took 4m32s before any restart or paste; later replies took 2s and 6s. This remains an observation without an attributed cause. ClipboardEvent/DataTransfer exercised the actual editor handler through CDP, not the OS clipboard. Visible labels changed from Opus Med to Opus after reopen and back, and from GPT-6.1-Sol to GPT-6.1-Sol Low on later turns; these are unattributed display observations, with no picker/config evidence of a changed saved choice.

Windows desktop results and 12 screenshots passed independent evidence audit on tested build 4d3b4b5d12452985f65cf97ad143af1c98ba49a2: real Claude/Codex reads of distinct 152,055/152,054-byte files; both original conversations resumed after full process stop/relaunch and answered again; exact 270,014-character text/editor-document retention through refusal, then a real recovery reply; and 2,000-character inline paste. ClipboardEvent/DataTransfer exercised the actual handler, without testing the physical OS clipboard. No saving-state still was captured; throttled DOM observations establish ordering only. The original WSL hook baseline was incomplete, and a later bounded supplement does not retroactively fill it. Model-label/options and clipped-prose observations remain unattributed.

Upgrade results and screenshots passed independent audit from main 6698df32771b736c301918c893dd5ab516a72084 to tested 4d3b4b5. The same isolated profile retained both original conversations, an exact ordinary unsent draft, and the opened Codex picker’s selected model and High effort. Each agent completed two post-upgrade requests, including reading a 163,842-byte saved file and returning its exact final line, which the question did not contain. Codex speed-selection and Claude compact-label observations remain unattributed. Four monitored real-config hashes matched and one changed; the owner attributes the latter to worker trust entries, without independent contents verification.

The final source check carries the unchanged client intake, admission, retained-draft and saved-state contracts from these actual 4d3 runs. The f894 merge changed Claude/Codex continuation and reply consumers, so those older provider reply/resume results do not establish current-head behavior. The audited focused f894 run above supplies provider execution evidence. The final e699 merge preserves the active Claude/Codex, store, journal, wire and send consumers. Its layout restoration and mixed-version tab consumers were traced separately and preserve structured-chat identity and draft ownership; removed exports/test support have no active callers. These source checks support carrying the named f894 evidence forward without claiming an e699 app execution.

Phone results and five screenshots report PASS with both phone and isolated server rebuilt from exact bb801256456a200da4ac9d11c5794c370618733d: actual oversized Send, 256 KB notice, all 276,490 draft bytes retained, unchanged 10-row server journal with one user entry, then an 82-byte replacement and real Claude reply. The independent evidence audit passed those named flows. Send stayed reachable in portrait with the software keyboard hidden. Seven native pastes added ten smart-paste spaces; after five chunks, Paste required a hold on the blank right side. The launcher’s authentication environment initially reached build/helper processes too, then was corrected; the lead reports a zero-match secret scan, whose denied artifact was not independently inspected. Keyboard-visible layouts, rotation and physical devices were not exercised.

The bb8 phone/server build is historical. Its admission and exact-draft-retention contracts are unchanged on f894. Shared phone transcript folding changed only hook-outcome notices; ordinary successful reply predicates are unchanged. Current provider continuation/reply evidence is supplied by the audited focused f894 run above; no f894 phone execution is claimed.

Historical evidence retains its original heads: macOS, Windows previous-build draft and completed-unsent-file persistence, rich-draft repeated refusal and paired-server file reads, desktop572, and phone572. The paired run used same-machine loopback, not SSH or browser. Timed main/branch controls showed one Undo restored the draft after a pause of about 1.1 seconds; immediate Send followed by Undo left both empty, an existing failure rather than a passing Undo result.

Native IME, OS clipboard/file picker and actual SSH were not exercised by these confirmations. Performance was reviewed in source; latency, peak memory, bursts and large stores were not benchmarked.

Author: @BrennanKB5

…ge is too large before it is sent

A paste of 32 KB or more (or one that would push the message past the 256 KB
send limit) into a structured chat is saved as a file the agent reads, through
the same pending-chip and @path route a dropped file takes: Orca's paste folder
here, or the chat's attachment store on its paired server. Claude gets the paste
folder as an allowed directory. A message still over the limit is handed back
before it is sent, on desktop and the phone, with words naming the limit instead
of the generic 'not sent, send it again'.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 18, 2026 18:57
…-paste

# Conflicts:
#	src/main/runtime/__snapshots__/structured-agent-launch-parity.test.ts.snap
@coderabbitai

coderabbitai Bot commented Oct 18, 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
📝 Walkthrough

The change adds UTF-8 byte-size checks for structured messages and rejects messages that exceed the configured limit. Native chat can save qualifying pasted text as a local file or agent-session attachment, represent the saved text with a draft reference, and resolve that reference for display, clipboard operations, and sending. The change also adds draft persistence, save-state handling, user notices, translations, and tests for size limits and paste outcomes.

Priority: ⚪ Pending latest changes

Merge Risk: 🔵 Low · up to 074c6

Unusual text matching an internal paste token can still be blocked from sending or changed when copied. These are narrow issues, but the paste handling should preserve literal text.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 42.86% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 77 functions across 77 files. (7 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description provides detailed scope, implementation, testing, limitations, and visual evidence. However, it does not include the mandatory Linked Issue entry with an actual issue reference, and it… Add the required template sections and headings. Include an actual linked issue under Fixes # or the repository-approved issue reference. Add the ELI5 summary, explicit AI Disclosure, Agent skill upstream boundary confirmation, and comple…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly describes the two primary changes: saving long pastes as text files and reporting oversized messages before sending.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 42.86% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 77 functions across 77 files. (7 skipped: 7 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description provides detailed scope, implementation, testing, limitations, and visual evidence. However, it does not include the mandatory Linked Issue entry with an actual issue reference, and it omits several required template sections or explicit checklist confirmations, including ELI5, AI Disclosure, Agent skill upstream boundary, and Checklist.

Resolution

Add the required template sections and headings. Include an actual linked issue under Fixes # or the repository-approved issue reference. Add the ELI5 summary, explicit AI Disclosure, Agent skill upstream boundary confirmation, and completed Checklist items. Keep the existing testing and visual-proof evidence, or explicitly map it to the corresponding template sections.

✨ 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.

…tles in place

A long paste now puts an inline Pasted text pill where it went, replacing any
selected text immediately, and the saved file (or inline text, or the original
selection on failure) replaces that same pill when the save finishes, in its own
chat's draft. Nothing reads the caret later, so order and position hold. The
paste never joins the image row, so image numbers are unchanged. The size check
measures the real message body with the selection replaced and images included.
A server that keeps no files takes the paste inline when the message still fits.
A pending paste a restart lost shows Paste not saved, and Send says so.
…-paste

# Conflicts:
#	src/renderer/src/web/preload-api/web-agent-session-attachment-upload.ts

@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: 343a5a29-92af-4852-b0d5-8ff30ab9497d
📥 Commits

Reviewing files that changed from the base of the PR and between 611aa94 and 4ed7219.

⛔ Files ignored due to path filters: 1
  • src/main/runtime/__snapshots__/structured-agent-launch-parity.test.ts.snap is excluded by !**/*.snap
📒 Files selected for processing: 43
  • src/main/agent-hooks/server/server-status-application.ts
  • src/main/agent-hooks/server/server-status-update.ts
  • src/main/daemon/pty-subprocess-spawn-file-foreground.test.ts
  • src/main/daemon/terminal-host-process-inspection.test.ts
  • src/main/providers/local-pty-child-process-verdict.test.ts
  • src/main/providers/local-pty-provider-foreground-process.test.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.paste-remount.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/NativeChatFileReferencePill.tsx
  • src/renderer/src/components/native-chat/NativeChatPromptEditor.tsx
  • src/renderer/src/components/native-chat/native-chat-attachment-upload.ts
  • src/renderer/src/components/native-chat/native-chat-composer-draft-storage.ts
  • src/renderer/src/components/native-chat/native-chat-composer-draft-store.ts
  • src/renderer/src/components/native-chat/native-chat-composer-input.ts
  • src/renderer/src/components/native-chat/native-chat-composer-pasted-text-references.ts
  • src/renderer/src/components/native-chat/native-chat-context-command.test.tsx
  • src/renderer/src/components/native-chat/native-chat-draft-cache.ts
  • src/renderer/src/components/native-chat/native-chat-pasted-text-reference.ts
  • src/renderer/src/components/native-chat/native-chat-pasted-text-state.ts
  • src/renderer/src/components/native-chat/native-chat-prompt-document-text.ts
  • src/renderer/src/components/native-chat/native-chat-prompt-document.ts
  • src/renderer/src/components/native-chat/native-chat-resolved-path-ownership.test.ts
  • src/renderer/src/components/native-chat/native-chat-resolved-path-ownership.ts
  • src/renderer/src/components/native-chat/native-chat-submission-navigation.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-attachments.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-handle.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-submit.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-submit.ts
  • src/renderer/src/components/native-chat/use-native-chat-pasted-text-file.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-pasted-text-file.ts
  • src/renderer/src/components/native-chat/use-native-chat-pty-composer-send.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-pty-composer-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-structured-composer-send.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-structured-composer-send.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • 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/web/preload-api/web-agent-session-attachment-upload.ts
  • src/shared/agent-session-attachments.ts
🚧 Files skipped from review as they are similar to previous changes: 7
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/zh.json
  • 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

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

@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

Caution

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

⚠️ Outside diff range comments (1)

🟡 Minor · Admit only file-reference nodes. · native-chat-composer-pasted-text-references.ts:54-76

src/renderer/src/components/native-chat/native-chat-composer-pasted-text-references.ts:54-76
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Admit only file-reference nodes.

nativeChatPastedTextAdmission scans flattened draft text and classifies any unregistered token-shaped text as unsaved. Ordinary pasted text remains a text node, so both structured and PTY sends can show “Paste not saved” and stop before dispatch.

Use nativeChatFileReference nodes from the stored document as the ownership boundary. Preserve the existing saving and unsaved checks for those nodes. Keep candidate handling separate because callers can provide a candidate that differs from the stored document.


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fdba1a74-2f06-4633-bd6e-8914486786cc
📥 Commits

Reviewing files that changed from the base of the PR and between a548290 and 074c631.

📒 Files selected for processing: 14
  • src/renderer/src/components/native-chat/NativeChatPromptEditor.tsx
  • src/renderer/src/components/native-chat/agent-session-write-notice-text.ts
  • src/renderer/src/components/native-chat/native-chat-prompt-document-text.ts
  • src/renderer/src/components/native-chat/structured-agent-session-message-sender.test.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • 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/shared/agent-session-refusal-notice.ts
  • src/shared/agent-session-write-notice-copy.ts
  • src/shared/rpc-contract/structured-agent-session-message-params.ts
🚧 Files skipped from review as they are similar to previous changes: 8
  • src/shared/agent-session-write-notice-copy.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ko.json

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

@OrcaWin

OrcaWin commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Real Electron QA on 0d4cb71

QA failed: literal-token Send is refused, and an oversized typed draft is lost. The real Claude/Codex large-paste paths and Claude restart/resume passed.

Tested 0d4cb71f6e425b843308a2db00a50f44237c73f7 against main merge base 893c4e24a4db18c34422d9ce67e3032c4683e233, sequentially in real hidden Electron on M4Air. Codex drove all flows using Playwright CDP; Grok's initial check returned an exhausted balance. Both agents under test used their load balancers and isolated homes; no permission prompts appeared (default Full access).

Flow Result
1. Claude, 149,983-byte clipboard paste PASS: inline pill, saved file matches input SHA-256, real reply gives ZEBRA-d21bcf15daa1ab32df74 from line 3000.
2. Full quit/relaunch, same chat PASS: sent @path and reply persist; real reply to “Repeat the marker” is exact.
3. Codex, same paste/question PASS: pill and @path; real reply gives exact marker.
4. 2,106-byte paste PASS: inline text, zero pills.
5. Literal [Pasted text](orca-paste:12345678-1234-1234-1234-123456789abc) FAIL: stays literal with zero pills, but Send says “This paste was not saved. Paste it again or remove it.” Draft remains.
6. 270,014 ASCII characters via CDP text input FAIL: correct 256 KB notice, but both Claude and Codex lose the draft. Main retains all 270,014 characters with the same input sequence.
7. Main comparison PASS: 150 KB paste stays inline; 299,966-byte paste is refused generically. Branch turns the same 299,966 bytes into a pill and the real Claude reply gives the marker.

Main's observed wording was “Your message was not sent.”, without a size explanation. The typed oversize input used the editor's real input events rather than a paste event, so file conversion could not absorb it.

Main vs branch

Main Branch
150 KB stays inline: main-150kb-inline.png 150 KB becomes a pill: branch-claude-ready.png
300 KB generic refusal: main-over256-refused.png Same 300 KB becomes a pill: branch-over256-pill.png
Typed oversize draft retained: main-typed-overlimit.png Typed oversize draft cleared: branch-overlimit-claude.png

Real replies and edge cases

Claude sent message and exact marker: branch-claude-reply.png

After full relaunch: branch-claude-reopened.png

Real follow-up reply: branch-claude-followup.png

Codex paste and real reply: branch-codex-ready.png branch-codex-reply.png

Small paste: branch-small-paste.png

Literal-token refusal: branch-literal-paste.png

300 KB real reply: branch-over256-reply.png

All screenshots capture the whole hidden renderer. Local saves settled too quickly to isolate the pending-save frame; failed-save handling was not forced. No lint/typecheck/source edits were run, every started test copy is stopped, and the before/after real-config hashes match. The Electron and visual-proof skills were used for this run.

…-paste

# Conflicts:
#	src/renderer/src/components/native-chat/native-chat-structured-composer-dispatch.ts
@OrcaWin

OrcaWin commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Real Electron QA on f4adbb8

Branch core flows PASS; overall QA incomplete. Exact head f4adbb884c5ad9aeb411e2690a3f844c048533b0, Windows high spec, real local native Claude/Codex through load balancers, hidden renderer driven by qa-drive/Codex over CDP.

Flow Result Whole-window screenshot filenames
Claude ~160 KB paste → pill → exact final-line marker PASS; saved file matches source flow1-claude-pill.png, flow1-claude-answer-verified.png
Full quit/relaunch/reopen → Repeat the marker PASS; same exact marker after restart flow2-persisted.png, flow2-repeat-answer.png
Codex ~160 KB paste → exact marker PASS; saved file matches source flow3-codex-pill.png, flow3-codex-answer.png
Reserved token paste/typed path PASS; unavailable pill/refusal/draft retained; removal and normal send work. Typed limitation matches expectation. flow4-refusal.png, flow4-typed-refusal.png, flow4-recovery.png
Typed 270,014-character draft, Claude and Codex PASS; repeated 256 KB refusal retains exact text/editor JSON hashes; shortening sends with real replies flow5-claude-refusal1.png, flow5-codex-refusal1.png, flow5-claude-recovered.png, flow5-codex-recovered.png
~2 KB paste PASS; inline text, no pill flow6-small-inline.png
Rich over-limit draft PASS for whitespace, completed pill and selected skill through refusal/recovery; image unexercised optional-A-refusal1.png, optional-A-shortened.png, optional-A-answer.png
Copy and Undo Saving copy returned original text; completed copy returned @path. Undo restored usable pill and resend worked, but omitted appended question: UNEXPECTED, unclassified. optional-B-completed-copy.png, optional-C-undo-restored.png, optional-C-second-answer.png
Failed-paste restart PASS with labeled controlled write failure in isolated profile; unavailable pill persisted, refused Send, was removable, and normal send recovered optional-D-induced-failed.png, optional-D-restored-unavailable.png, optional-D-recovery-answer.png
Main ef950401d3be comparison and plain-message Undo classification BLOCKED / unexercised None

First qa-drive completed branch flows. Follow-up qa-drive exhausted its drivers: Codex answered sign-in preflight then hit model capacity; Grok signed out, OpenCode unavailable. Per the QA machine contract, copies were stopped and run is incomplete; no claim that Undo observation is a regression. Main was not built/tested before this stop.

Gaps: image retention; restart while still saving (failed-paste restart exercised); main and plain-message Undo comparisons. Initial isolated Windows CMD alias setup caused visible Claude startup-hook error; throwaway initializer corrected, hooks stayed enabled, real marker/recovery replies succeeded. All recorded app PIDs exited; real config hashes unchanged; no shipped source/tests changed.

31 whole-window PNGs and filename/SHA-256/flow manifest are preserved. Windows host lacks GitHub browser upload cookie; coordinator explicitly owns gh image upload from its Mac and will post images mapped to these filenames. No crops or reconstructed UI.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Screenshots for the Real Electron QA on f4adbb8

Whole-window screenshots of the hidden test copy on Windows high spec, uploaded from the QA folder after SHA-256 verification against the run's manifest. Results table: #30398 (comment)

Claude: large paste becomes a pill, real reply gives the exact marker

flow1-claude-answer-verified.png
flow1-claude-answer.png
flow1-claude-pill.png

Full quit and relaunch: chat reopens with the sent file and reply; follow-up gives the marker again

flow2-persisted.png
flow2-repeat-answer.png

Codex: large paste and exact marker

flow3-codex-answer.png
flow3-codex-pill.png

Pasted placeholder token: unavailable "Paste not saved" pill, explained refusal, removal recovers (typed token: accepted limitation)

flow4-recovery.png
flow4-refusal.png
flow4-removed.png
flow4-typed-refusal.png
flow4-unavailable-pill.png

270,014 typed characters: 256 KB notice, draft kept exactly on repeated Send, then shortened and sent (Claude and Codex)

flow5-claude-recovered.png
flow5-claude-refusal1.png
flow5-claude-refusal2.png
flow5-codex-recovered.png
flow5-codex-refusal1.png
flow5-codex-refusal2.png

Small paste stays inline

flow6-small-inline.png

Rich draft (whitespace, pill, picked skill) kept through refusal, then shortened and sent

optional-A-answer.png
optional-A-refusal1.png
optional-A-refusal2.png
optional-A-shortened.png

Copy of a saving pill and a completed pill

optional-B-completed-copy.png
optional-B-saving-copy-completed.png

Undo after Send restores a usable pill (typed text after it not restored; main comparison pending)

optional-C-second-answer.png
optional-C-undo-restored.png

Failed paste after restart shows a removable "Paste not saved" pill

optional-D-induced-failed.png
optional-D-recovery-answer.png
optional-D-restored-refusal.png
optional-D-restored-unavailable.png

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Real Electron QA on 409b3c2

Large text pastes became file pills, both real agents read the saved file and returned the exact last-line marker, and the original Claude conversation survived a full app restart. No branch-only regression was found in the requested confirmation flows. One Undo after an immediate Send leaves the composer empty on both branch and main; that unexpected behavior is pre-existing.

Tested branch 409b3c2f15e65a2c892e7b965fdd02eb0e1f3310, then its main parent 065e6873f68b6488fb62bc9b93de1c7a6f062b1b. qa-drive selected Codex for every measured flow; agents under test were real Claude and Codex through the load balancers, under a throwaway home/profile. Hidden local macOS renderer, CDP only.

Flow Result
Claude 155,805-byte numbered paste → exact marker PASS
Full quit/relaunch → saved message/reply → “Repeat the marker” PASS
Codex 157,558-byte numbered paste → exact marker PASS
Paused typed Send → one Command+Z PASS on branch and main; exact editor JSON restored
Immediate typed Send → one Command+Z FAIL on both, pre-existing; both composers stayed empty
Pill + question → Send → Undo → re-Send PASS; both restored exactly and re-Send worked
Image + completed pill + blank-line text over 256 KB PASS; notice appeared and JSON/text/image/pill stayed identical
Shortened rich draft → Send PASS; real Claude described the red-square fixture and returned the exact file marker
Typed 270,014 characters → Send PASS; 256 KB notice and exact draft retained
Small 2,048-byte clipboard paste PASS; inline with no pill

Timing from last character to Send: paused 1,106 ms branch / 1,110 ms main; immediate 5 ms branch / 32 ms main. Same saved action scripts and one CDP Command+Z on each build. The branch rich Undo waited 1,106 ms after typing and restored pill plus question. Full before/outgoing/after editor JSON is retained in the local report.

The existing Chat UI opt-in was enabled through Settings; other settings remained at defaults. Default workspace terminal startup encountered the shared host terminal cap, so the requested native chats ran without PTYs. A synthetic image-paste attempt was discarded because its native clipboard source differed from the fixture; the final image flow was rerun through the existing file-drop UI handler, with matching fixture/composer/outgoing image hashes and a correct real-agent description. The unrelated capture and its screenshots were deleted. Native file picker, phone, remote and other-platform behavior were not exercised in this targeted confirmation. A transient model-label change during initialization was recorded separately, with no branch regression established.

All test copies and the isolated daemon are stopped. No shipped source changes, commits or pushes.

17 whole-window CDP screenshots (filenames)

flow0-chat-ui-opt-in.png

flow1-claude-pill.png

flow1-claude-reopened.png

flow1-claude-repeat.png

flow1-claude-reply.png

flow2-codex-pill.png

flow2-codex-reply.png

flow3-branch-undo-a.png

flow3-branch-undo-b.png

flow3-branch-undo-c.png

flow3-main-undo-a.png

flow3-main-undo-b.png

flow4-before.png

flow4-refused.png

flow4-sent.png

flow5-small-inline.png

flow5-typed-refused.png

@OrcaWin

OrcaWin commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Real Electron QA on 409b3c2

FAILED / INCOMPLETE — required coverage remains after qa-drive exhausted its available drivers. No merge-confidence claim. Windows high spec; exact head 409b3c2f15e65a2c892e7b965fdd02eb0e1f3310, main parent 065e6873f68b6488fb62bc9b93de1c7a6f062b1b. Branch built first, then main; main and branch shared the same fresh throwaway profile for upgrade.

Required flow Result Evidence filenames
Main-saved unsent draft → branch send/reply PASS: exact draft restored and real Claude replied flow1-settings.png, flow1-main-draft.png, flow1-branch-restored.png, flow1-branch-reply.png
Completed unsent 165 KB pill/question → restart → exact marker PASS: restored usable; source/saved hashes match; real marker reply flow2-before-quit.png, flow2-restored.png, flow2-reply.png
Same rich draft refused twice, with selected skill chip + dragged image + pill + whitespace PARTIAL/BLOCKED: both 256 KB refusals retained identical editor JSON; required chip draft shortening/send/reply not exercised flow3-chip-rich-ready.png, flow3-chip-refusal1.png, flow3-chip-refusal2.png
Paired desktop → isolated server upload/send/reply PARTIAL/BLOCKED: pairing and 106 KB server-store upload verified; reply and final ordered repeat missing flow4-pairing.png, flow4-pill.png
Paired browser → server upload/send/reply NOT EXERCISED / BLOCKED none

Actual skill-chip draft: serialized JSON length 304,920; exact SHA256 identical before and after both refusals. insertText 60 ms; refusal notices 1,852/1,892 ms. Supplemental provider /electron command run also retained the rich draft through both refusals and recovered with real image description, exact marker and loaded skill instructions (flow3-refusal1.png, flow3-refusal2.png, flow3-shortened.png, flow3-reply.png); it does not substitute for the required actual skill-chip recovery.

Unexpected observations: the limit notice stayed visible after shortening until Send; Claude reported the supplemental electron skill text truncated near Cleaning Up; startup onboarding tips appeared; an isolated-server Edge crashpad handler needed PID cleanup; the paired-desktop pill screenshot shows a bottom-left Refresh failed status (cause undiagnosed). These are observations without PR regression attribution. Flow 2 needed a follow-up allowing read-only tools because its initial QA prompt prohibited tools.

All UI driving used qa-drive → Codex, real load-balanced Claude, hidden Electron renderers and CDP; image used a PNG file drag, not system clipboard. Launcher ultimately classified Codex unusable: rate limit, then Grok Not signed in, OpenCode unavailable; no manual fallback was used. All recorded test app processes and isolated orphan handler are stopped; tracked worktree clean, no source edits/commits/push.

Evidence directory: C:\Users\neil\orca-qa\pr-30398\targeted; manifest.txt hashes 17 whole-window PNGs; screenshot-evidence.zip contains screenshots + manifest for coordinator upload. Durable report: qa-confirm-report.md. Remaining: actual skill-chip recovery and full paired desktop/browser flows on a working QA driver.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Screenshots for the targeted QA on 409b3c2 (Windows high spec)

Uploaded from this Mac after SHA-256 verification against the run's manifest. Results and gaps: #30398 (comment)

Draft typed in the main build opens and sends in this build (Chat UI opt-in shown)

flow1-branch-reply.png
flow1-branch-restored.png
flow1-main-draft.png
flow1-settings.png

Completed unsent pill and question survive a full quit/relaunch, then send; real reply gives the exact marker

flow2-before-quit.png
flow2-reply.png
flow2-restored.png

Rich over-limit draft refused twice, draft unchanged (skill chip run, and an earlier provider-command run with shortened send)

flow3-chip-refusal1.png
flow3-chip-refusal2.png
flow3-chip-rich-ready.png
flow3-refusal1.png
flow3-refusal2.png
flow3-reply.png
flow3-rich-ready.png
flow3-shortened.png

Paired test server: pairing and pill uploaded to the server store (final send not reached)

flow4-pairing.png
flow4-pill.png

@OrcaWin

OrcaWin commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Real Electron QA on 409b3c2

QA FAIL overall: flows 3–4 PASS; required flow 5 BLOCKED. Exact head 409b3c2f15e65a2c892e7b965fdd02eb0e1f3310, main parent 065e6873f68b6488fb62bc9b93de1c7a6f062b1b. Fresh branch desktop/server/web build on M4Air; real Claude through the load balancer, driven by Codex through qa-drive and hidden-renderer CDP.

Required flow Result Observed behavior and screenshots
3. Rich draft, twice refused, repaired Send PASS Blank lines/indentation, saved Pasted text pill, real Skills-picker chip and CDP-dropped image. Both 256 KB refusals preserved byte-identical editor JSON plus text/file/image metadata. Shortened Send returned exact file marker, skill marker and correct red-square/blue-circle image description. flow3-rich-draft.png, flow3-refusal-1.png, flow3-refusal-2.png, flow3-repaired-draft.png, flow3-real-reply.png.
4. Paired desktop → isolated server PASS Scratch repo on isolated server; 101,779-byte upload matched exactly and had no desktop saved-file counterpart. Real server Claude returned FLOW4-PAYLOAD-30398-23181aa9. Session/account home/process cwd verified on server. flow4-server-connected.png, flow4-saved-pill.png, flow4-real-reply.png.
5. Paired headless browser BLOCKED Real Chrome paired to same server, Chat UI on, but native Claude launch is unavailable. Also tried desktop-created mirrored native chats: desktop inventory contains both chats; browser inventory removes them and shows only Terminal. Browser paste/upload/pill/Send/reply not exercised. flow5-chat-ui-enabled.png, flow5-native-chat-menu-blocked.png, flow5-mirrored-chat-missing.png.

Flow 3's two refusals took 1.136 s and 0.893 s; repaired real reply observed after 29.809 s. File payload was 105,473 bytes. Editor snapshots before/after both refusals were all 270,955 bytes with identical SHA-256. flow3-chat-ui-enabled.png records Settings opt-in.

The browser blocker matches its missing native-session capabilities and host tab filtering; these source files are unchanged from the main parent. This run does not demonstrate a paste regression, but it cannot pass the mandatory browser-upload requirement. No capability spoofing or source edits.

Other observations recorded: a new fixture skill needed the existing five-minute picker cache to expire; the size notice stayed until successful Send (existing behavior confirmed by coordinator); removing an accidental test-server project left an Unknown sidebar group. An initial server marker attempt in the real primary checkout was retained only as supplemental, then repeated in the requested scratch repo; real checkout Git status remained clean. The additional mobile-web build failed on absent mobile dependencies, outside these flows.

All owned desktop/server/browser processes and daemons stopped by recorded PID; CDP/server ports closed. No shipped source changes. Report, driver attribution, editor comparisons, server journals and 26-image SHA-256 manifest: /Users/m4air/orca-qa/pr-30398/remainder/qa-confirm-report.md and manifest.txt.

@OrcaWin

OrcaWin commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Phone QA on 409b3c2

QA FAILED: required Send/recovery flows were not completed. This is incomplete validation, not a verified failure of the new size guard.

Flow Result Evidence files
Same-head isolated server + signed iOS app, pairing, real native Claude chat PASS desktop-ready-reply.png, phone-chat-open.png, build-identity.json
Over-limit Send: 256 KB notice, no send, retained draft NOT EXERCISED TO COMPLETION phone-flow2-draft.png, flow2-paste-log.json — AX recorded a 276,492-character draft, but Send/refusal was not verified
Shorten rejected draft, send, real reply NOT EXERCISED A separate 2,001-byte setup message did send and get a real reply; this does not prove recovery
Main-parent generic-refusal comparison NOT EXERCISED — lease cutoff Parent 065e6873f68b phone build succeeded but was not run

Unexpected observations: a single 270 KB paste did not populate the draft in our attempts; smaller UI pastes accumulated the oversized draft successfully. The large composer extended below the visible screen; the emulator AX connection was also lost after the host runtime restarted. After reattachment and rotation, the app was no longer open; no crash cause was diagnosed (phone-flow2-landscape.png). These need a focused follow-up.

All owned test processes were stopped and the dedicated simulator was shut down. PNG screenshots and SHA256 manifest.txt are prepared for coordinator upload; the detailed qa-phone-report.md is delivered privately. Requeue the over-limit Send/notice/draft-retention check, shortened recovery, and parent comparison.

@OrcaWin

OrcaWin commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Phone QA rerun on 409b3c2

PASS — all required head flows exercised; main-parent comparison also completed. Tested signed iOS simulator apps paired with isolated servers at the matching commits: head 409b3c2f15e65a2c892e7b965fdd02eb0e1f3310, parent 065e6873f68b6488fb62bc9b93de1c7a6f062b1b. Real Claude native chats used fresh scratch repositories and dedicated QA homes; drivers ran through qa-drive.

Flow Result Evidence filenames
Head phone paired to head server; real native reply PASS initial-reply.png, desktop-initial-reply.png
Paste >256 KB and press actual Send PASS: notice explicitly names 256 KB; complete 276,492-byte draft retained with identical SHA-256; server journal unchanged at 10 rows/one user entry flow2-before-send.png, flow2-after-send.png, flow2-proof.json, transcript-before-send-final.json, transcript-after-send.json
Replace retained draft with 80-byte question and Send PASS: real Claude replied ORCA30398_RERUN_20261021_PHONE; server gains exactly the short user message flow3-shortened.png, flow3-reply.png, desktop-recovery-reply.png, flow3-proof.json
Parent phone paired to parent server, same oversized draft and actual Send PASS comparison: “Your message was not sent.” with no limit guidance; full draft retained; no new server user message; short recovery also passed parent/flow2-send-immediate.png, parent/flow2-proof.json, parent/flow3-reply.png

Head notice: “Your message was not sent. It is over the 256 KB limit for one message. Shorten or split it, then send it again.”

Send remained visible throughout both runs in portrait with the software keyboard hidden; no scrolling, rotation, or keyboard dismissal was needed. The earlier tall-composer/inaccessible-Send and app-closure observations did not reproduce in this path; keyboard-visible and rotated layouts remain untested. Seven native UI pastes assembled the draft; native smart spacing added 12 bytes to the generated 276,480-byte fixture. A single 270 KB paste was not retried.

Evidence is in phone-rerun/qa-phone-report.md, parent/qa-parent-report.md, and manifest.txt (35 public PNGs plus selected proof files, SHA-256 and flow). All owned test processes were stopped, the dedicated simulator was shut down, and the head checkout is unchanged. No shipped source/tests were edited, committed, or pushed. This supersedes the previous incomplete phone run for the exercised path.

…-paste

# Conflicts:
#	src/renderer/src/components/native-chat/use-native-chat-composer-handle.ts
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Phone QA rerun on 409b3c2: screenshots

Screenshots for the phone results above (issuecomment-6316756881). Order: oversized draft before Send, the 256 KB notice after Send with the draft kept, the shortened message, Claude's real reply, then the main-parent build's generic refusal for comparison.

Head 409b3c2 is now superseded by 5725135 (main merge). A short phone confirmation on 5725135 is queued.

flow2-before-send

flow2-after-send

flow3-shortened

flow3-reply

flow2-send-immediate

@OrcaWin

OrcaWin commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Real Electron QA on 5725135

PASS: all four required desktop flows on exact head 5725135aa0ec6f0b0306f6d04ce8f31e208adf61. Codex, launched by qa-drive, drove real hidden Electron through Playwright CDP on M4Air/macOS. Claude and Codex under test used their real CLIs through load balancers, isolated homes/profile, default agent settings and hooks, in a scratch git worktree. Chat UI was enabled through Settings.

Flow Result Screenshot files
Claude ~150KB paste PASS — 148,546 bytes became a saved pill; Send disabled while saving, enabled after; real reply returned exact last-line marker. flow1-claude-saving.png, flow1-claude-ready.png, flow1-claude-reply.png
Full quit/relaunch, same chat PASS — sent message and reply persisted; real “Repeat the marker” reply exact. flow1-claude-reopened.png, flow1-claude-repeat.png
Codex same paste/question PASS — completed pill, ordinary file path, exact real marker reply. flow2-codex-ready.png, flow2-codex-reply.png
270,014 typed characters + retry PASS —256 KB notice, nothing sent, draft retained byte-for-byte; shortened question sent and got real reply. flow3-overlimit.png, flow3-recovered.png
Small paste PASS —2,066 bytes stayed inline,39 paragraphs preserved, zero pills. flow4-small-paste.png

Marker: QA572_5714a3246368f3b7b36b9d48bf1b57c8, line002251. Both agents' saved files match fixture SHA256 bae67a9660d0e178834d25eff7b3ef008b6c37f027c79b3c0fef3715d284f6fd. Typed draft before/after SHA256 matched exactly, and conversation hash stayed unchanged on refusal.

Pending-save proof: natural observer recorded disabled Send/hourglass at1792598497812 and completed path/enabled Send at1792598497902 (90ms). Initial still captures missed the transient; the saving PNG is an untouched whole-window frame from a supplemental real-paste CDP screencast with CPU throttle100, restored afterward. No promise hold, save/API wrapper, fake save, or mocked reply was used. The missing visual frame was captured after the main flows; main send/reply/restart evidence remains from the original chat.

Residual tips, a Codex shared-server notice, and a star nag appeared without blocking the flows. All test copies and owned remaining processes are stopped; real config hashes unchanged. One install/build, no lint/typecheck or shipped source edits. Scope: requested local native-chat macOS flows; other platforms/remote/mobile and forced save failures were not exercised. Earlier-head evidence was not counted.

Whole-window screenshots

flow1-claude-saving.png

flow1-claude-ready.png

flow1-claude-reply.png

flow1-claude-reopened.png

flow1-claude-repeat.png

flow2-codex-ready.png

flow2-codex-reply.png

flow3-overlimit.png

flow3-recovered.png

flow4-small-paste.png

@OrcaWin

OrcaWin commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Phone QA on 5725135

PASS — phone app and isolated Orca server rebuilt from exactly 5725135aa0ec6f0b0306f6d04ce8f31e208adf61, including current mobile dependency patches. Required flows repeated after correcting the initial native dependency cache.

Check Result Evidence files
Exact-head phone/server, scratch native Claude chat PASS flow1-chat-corrected.png, build-runtime-identity.json, lead-dependencies-corrected.json
Over-limit Send PASS: 276,487-byte draft; notice names 256 KB flow2-before-send.png, flow2-notice.png
Retained draft and no server submission PASS: full draft identical; journal unchanged at 8 rows / 1 existing short user message flow2-retained.png, flow2-proof.json, transcript-before-send-final.json, transcript-after-send.json
Shorten and send PASS: replaced same draft with 73-byte marker question; real Claude replied ORCA30398_5725135_PHONE flow3-shortened.png, flow3-reply.png, desktop-recovery-reply.png, flow3-proof.json
Cleanup PASS: owned app/server/helper stopped, owned simulator shut down, no listeners on configured ports lead-final-verification.json

Notice: “Your message was not sent. It is over the 256 KB limit for one message. Shorten or split it, then send it again.”

Send stayed visible in portrait with the software keyboard hidden; no dismiss, scroll, or rotation was needed. The composer stayed bounded. Native Paste menus intermittently needed a tap on the visible caret before Paste appeared; no draft was lost (corrected-caret-menu.png, corrected-last-paste-caret.png). An earlier short request hit shared provider capacity; the final real reply succeeded after its reported reset, and that earlier error remains visible above the successful turn.

Evidence: /Users/m4air/orca-qa/pr-30398/phone-572/; full report qa-phone-report.md, SHA-256 manifest manifest.txt. QA driver: qa-drive → Codex, preflight OK, exit 0. Scope: iOS simulator, portrait, keyboard hidden; keyboard-visible/rotation and other platforms were not exercised. No main comparison this round.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Phone QA on 5725135: screenshots

Screenshots for the phone results above (issuecomment-6331997368), in order: the chat on the 5725135 phone build, the oversized draft before Send, the 256 KB notice, the draft kept after the refusal, the shortened message, and Claude's real reply.

flow1-chat-corrected

flow2-before-send

flow2-notice

flow2-retained

flow3-shortened

flow3-reply

@OrcaWin

OrcaWin commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Real Electron QA on 4d3b4b5 (Windows)

PASS with an accepted evidence limitation. Tested exact head 4d3b4b5d12452985f65cf97ad143af1c98ba49a2 on Windows high spec, native structured chats, a scratch Git worktree, and real Claude/Codex CLIs through the load balancers. Codex drove every flow through qa-drive (preflight OK, plan exit 0).

Check Result Whole-window PNG evidence
Claude real 152,055-byte clipboard paste → completed pill → exact last-line marker PASS; source/saved file hashes match, Send enabled after save flow1-claude-complete.png, flow1-claude-reply.png
Claude full PID stop → same-profile relaunch → reopen → second real marker reply PASS flow1-claude-persisted.png, flow1-claude-repeat.png
Saving-state Send gating PASS with accepted missing still; timestamped DOM shows saving + disabled, then complete + enabled See limitation below
Codex real 152,054-byte paste → pill → distinct exact marker PASS; source/saved file hashes match flow2-codex-pill.png, flow2-codex-reply.png
Codex full PID stop → same-profile relaunch → reopen → second real marker reply PASS; original provider thread resumed flow2-codex-persisted.png, flow2-codex-repeat.png
Exactly 270,014 typed characters → Send PASS; 256 KB notice, zero sent messages, exact text and editor JSON preserved flow3-limit-notice.png
Shorten rejected draft → Send → real Claude reply PASS; LIMIT_RECOVERY_OK flow3-limit-recovery.png
2,000-character real clipboard paste PASS; exact inline text, zero pills flow4-small-inline.png

Saving screenshot limitation: immediate captures missed the roughly 5ms natural save. The coordinator-approved single screencast/CPU-throttle attempt timed out before retaining frame files; normal CPU speed was restored. Timestamped DOM evidence shows saving=true/Send disabled=true at 159605.1ms and saving=false/Send enabled at 203196.5ms. The coordinator explicitly accepted this missing still with those records; no screenshot of saving is claimed.

Other observations: Claude's composer label changes Opus Med → Opus → Opus Med across reopen/reply. Explanatory reply text appears clipped at the right edge near wc/-l; marker remains readable. Screenshot observation-claude-clipped-reply.png records a 1097px conversation pane, 726px text column, 1728×1036 viewport. Coordinator noted the label difference appeared previously and these areas are outside this PR; no regression attribution.

WSL integrity qualification: the first baseline checked agent configs and ~/.local/bin/orca-ide but missed the actual ~/.orca/agent-hooks scripts. Coordinator accepted an explicitly documented supplement: one further hidden native launch/stop on the same profile, without install/build/agent runs or starting a distro. All 13 hook-directory files across both already-running distros had identical before/after hashes and timestamps; both orca-ide paths stayed absent. No hook file or orca-ide changed in the supplement, and recorded hook-file change times predate this QA job. The missing original script hashes cannot be recreated.

All screenshots come from the actual hidden renderer over CDP. Native Chat UI was enabled through Settings; other chat settings remained at defaults. Every test copy, including the supplemental launch, is stopped using recorded PID/creation-time checks; real config hashes are unchanged. No real project or agent login files used.

Evidence folder: C:\Users\neil\orca-qa\pr-30398\final4d3. Report: qa-final-4d3-report.md; driver details: driver-results.json, drive.json; all 15 PNG hashes/flow mappings: manifest.txt. Browser-cookie image upload is unavailable here and installed gh pr comment lacks attachments, so filenames are listed for coordinator embedding; screenshot-evidence.zip contains PNGs and manifest only.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Real Electron QA on 4d3b4b5 (Windows): screenshots

Screenshots for the Windows results above (issuecomment-6334090055), in order: Claude paste saved as a file and its exact-marker reply; the Claude chat after a full restart and its second reply; Codex's pill and reply; the Codex chat after a full restart and its second reply; the 256 KB notice with the draft kept; the shortened send's reply; the small paste staying inline; and the clipped-reply observation.

flow1-claude-complete

flow1-claude-reply

flow1-claude-persisted

flow1-claude-repeat

flow2-codex-pill

flow2-codex-reply

flow2-codex-persisted

flow2-codex-repeat

flow3-limit-notice

flow3-limit-recovery

flow4-small-inline

observation-claude-clipped-reply

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Upgrade check: main 6698df3 to 4d3b4b5

PASS. This checks whether existing chats and an unsent draft survive upgrading to the large-paste change. Built main 6698df32771b736c301918c893dd5ab516a72084, created native Claude and Codex chats and a multiline draft through the UI, stopped that build, then launched PR head 4d3b4b5d12452985f65cf97ad143af1c98ba49a2 with the same isolated profile. Both agents used real CLIs through the load balancers on macOS; Codex drove both phases through hidden-renderer Chrome DevTools Protocol (CDP).

Flow Result Evidence
Main: both real agent replies PASS main-claude-reply.png, main-codex-reply.png, main-both-chats-listed.png
Main: changed choice and unsent draft PASS Codex selected GPT-6.1-Sol / High in the opened picker; typed draft included a blank line. main-codex-selected-high.png, main-codex-unsent-draft.png
Upgrade: existing histories, actual selected model/effort and exact draft survive PASS final-claude-before.png, final-codex-draft.png, final-codex-menu-before.png
Existing Claude chat: continuation, then large paste PASS Both real replies received; final-claude-upgraded-reply.png, final-claude-paste-before.png, final-claude-paste-reply.png
Existing Codex chat: kept draft, then large paste PASS Both real replies received; final-codex-draft-reply.png, final-codex-paste-before.png, final-codex-paste-reply.png
Choice and earlier history remain after sends PASS final-codex-menu-after.png and both paste-reply screenshots

The 163,842-byte numbered-lines paste became one inline “Pasted text” pill in each existing chat. Normal Send supplied an ordinary saved file path, and both agents returned exactly PR30398_UPGRADE_4D3_LAST_LINE_ZEBRA_73196. The question did not contain the marker.

Informational observations: Codex's untouched Standard-speed radio had no visible selection immediately after restart and selected Standard after a continuation; its chosen model and High effort stayed selected throughout. Claude's compact label changed from Opus to Opus Med after continuation; no Claude effort choice was changed. The session-search promotion was dismissed without opting in. None blocked the tested flows; these observations were reviewed with the QA coordinator.

All 15 screenshots are whole-window PNG captures with SHA256 entries in local manifest.txt. Local report: ~/orca-qa/pr-30398/upgrade-4d3/qa-upgrade-report.md. Both test copies and every recorded app process were stopped. Real-config hashes were recorded before and after; .codex/config.toml changed during the shared-machine run, while the other four monitored paths matched (including absent files). No real config content was inspected for comparison.

Scope: local macOS main-to-head upgrade and two post-upgrade sends per agent. This run does not claim remote/mobile/other-platform coverage or a second restart after the large-paste sends.

Before upgrade, selected Codex model and effort:

main-codex-selected-high.png

After upgrade, exact draft retained:

final-codex-draft.png

final-claude-paste-reply

final-codex-paste-reply

@OrcaWin

OrcaWin commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Phone QA on bb80125

PASS — rebuilt both the signed iOS app and isolated Orca server from exactly bb801256456a200da4ac9d11c5794c370618733d, then repeated the native Claude phone flow on October 22. QA ran through qa-drive (Codex preflight OK, exit 0), with a fresh profile and scratch repository.

Check Result Evidence files
Final-head phone paired to final-head server; real Claude chat PASS initial-reply.png, desktop-initial-reply.png, build-runtime-identity.json
Actual oversized Send shows 256 KB notice PASS flow2-before-send.png, flow2-after-send.png
Full draft retained; nothing sent to server PASS — identical 276,490 bytes; server journal unchanged at 10 rows / 1 user entry flow2-proof.json, transcript-before-send-final.json, transcript-after-send.json
Shorten same draft and Send; real reply PASS — native Select All → Paste replacement, 82-byte question; second server user entry and exact Claude marker reply flow3-shortened.png, flow3-reply.png, desktop-recovery-reply.png, flow3-proof.json
Cleanup PASS — owned processes stopped, owned simulator shut down lead-final-verification.json

Observed notice: “Your message was not sent. It is over the 256 KB limit for one message. Shorten or split it, then send it again.”

Send stayed visible in portrait with the software keyboard hidden; no scrolling, keyboard dismissal, or rotation was needed to reach it. Seven smaller native pastes built the draft. After five pastes, the Paste menu needed a tap/hold in the blank right composer area (0.92, 0.84); no draft was lost or accidentally sent. Native smart paste added 10 spaces. The oversized draft otherwise kept the composer bounded and the app usable.

Evidence folder: /Users/m4air/orca-qa/pr-30398/phone-bb8/; full report qa-phone-report.md, checksums manifest.txt. Keyboard-visible layouts, rotation, and physical devices were outside this run. Build/setup warnings and procedural deviations are recorded in the report; no main comparison was run.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Phone QA on bb80125: screenshots

Screenshots for the phone results above (issuecomment-6335806372), in order: Claude's first reply on the bb80125 phone build, the oversized draft before Send, the 256 KB notice after Send with the draft kept, the shortened message, and Claude's real reply.

initial-reply

flow2-before-send

flow2-after-send

flow3-shortened

flow3-reply

@OrcaWin

OrcaWin commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Focused QA on f8940a6: Claude and Codex across a restart

PASS on exact f8940a6b33bbb438b96d5c371d41df248df95ac2, M4Air macOS, one isolated profile and scratch git worktree, real Claude/Codex CLIs through the team load balancers. Native Chat UI enabled through Settings UI; other agent defaults/hooks retained. Full stop/relaunch PIDs: 48916 → 86913.

Mandatory flow Claude Codex
Native chat + first short send/reply PASS PASS
Full restart: earlier user message and assistant reply preserved PASS PASS
Short send/reply in the same resumed chat PASS PASS
~150KB numbered-lines paste → Pasted text pill/file → exact marker reply in that same resumed chat PASS PASS

Pastes were 142,289 / 142,288 bytes; saved files exactly matched fixture SHA256 values. Sent messages contained ordinary file paths. Returned exact markers: CLAUDE_F89_MARKER_e558266a and CODEX_F89_MARKER_a8016ab7.

Observation: the first Codex short reply displayed Working for 4m32s, with no error shown; after restart its short/paste replies took 2s / 6s. No cause is claimed; checked initial-turn logs contained no retry/overload line. One-time tutorial modals and a Codex informational toast were dismissed without changing agent defaults.

Driver provenance: qa-drive automatically skipped Codex (preflight timeout) and Grok (signed out); opencode-go / DeepSeek V4.1 Flash drove all flows and exited 0. Both test copies are stopped. Focused local macOS coverage; no main comparison or broader platform/remote claim.

Evidence: /Users/m4air/orca-qa/pr-30398/focused-f89/qa-focused-f89-report.md, with manifest.txt (filename | SHA256 | flow).

Whole-window hidden-renderer screenshots

flow1-claude-before.png

Claude initial real reply

flow1-codex-before.png

Codex initial real reply

flow2-claude-reopened.png

Claude history after full restart

flow2-codex-reopened.png

Codex history after full restart

flow3-claude-short.png

Claude short reply after restart

flow3-codex-short.png

Codex short reply after restart

flow3-claude-paste-ready.png

Claude completed Pasted text pill

flow3-claude-marker-reply.png

Claude exact marker reply

flow3-codex-paste-ready.png

Codex completed Pasted text pill

flow3-codex-marker-reply.png

Codex exact marker reply

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Large pasted logs could exceed the 256 KB message limit and fail with a generic “send again” notice. This PR saves large pastes as files on the chat’s computer, shows a “Pasted text” pill, and sends an ordinary file reference the agent can read. Oversized ordinary messages receive an explanation before the composer hands over the draft, preserving its contents.

Six design review rounds are complete. Final head is e699f14fc0d43c45345022ca53f5b805b259b09c. The bounded final integration and whole-mechanism comparisons are clean. Independent accounting is 700 production/416 tests/44 locale additions, conservatively 703/420/44 with historical charges retained against 705/420 core/test caps and the approved locale allowance. The full PR workflow and aggregate gate passed on this exact head: 25 successful checks, 22 skipped, none failed or pending. The owner cancelled the first mobile-web bundle attempt after it hung for about an hour; the failed/cancelled-job rerun passed in 15m14s. Other jobs had already passed on their first attempt. Review repairs included independent attachment completion, completed-file Undo, path separators, consistent reserved-marker handling and exact size refusal before draft transfer.

Focused QA on f894, with ten embedded screenshots, passed its independent bounded evidence audit on exact f8940a6b33bbb438b96d5c371d41df248df95ac2 on macOS. Real Claude and Codex chats each answered before a full app stop; the same profile reopened both original histories. Each resumed chat then answered a short request and read a large pasted file, returning an exact marker absent from the question. The actual fixtures are 142,289 and 142,288 bytes; both fixture hashes and all 26 manifest screenshots independently match. The QA lead records saved-file equality. The audit found no contradiction or material missing evidence for these named flows. Saved-file equality, full launch environment, Codex provider identity after restart and cleanup remain corroborated driver/lead receipts; the copied evidence does not include raw profile files, post-restart databases or a launcher/event log for independent replay. qa-drive used opencode-go after Codex timed out and Grok was signed out; Claude and Codex were the real agents under test. Nine monitored real-config path records were unchanged (four existing hashes and five missing files), and the lead records both app trees stopped. The first Codex reply took 4m32s before any restart or paste; later replies took 2s and 6s. This remains an observation without an attributed cause. ClipboardEvent/DataTransfer exercised the actual editor handler through CDP, not the OS clipboard. Visible labels changed from Opus Med to Opus after reopen and back, and from GPT-6.1-Sol to GPT-6.1-Sol Low on later turns; these are unattributed display observations, with no picker/config evidence of a changed saved choice.

Windows desktop QA, with 12 screenshots, passed independent evidence audit on actual tested build 4d3b4b5d12452985f65cf97ad143af1c98ba49a2. Claude and Codex read distinct 152,055/152,054-byte files and returned their exact markers. Both original provider conversations resumed after full process stop/relaunch and answered a second request. A 270,014-character typed draft retained identical text/editor JSON through refusal without submission; shortening produced a real recovery reply. A 2,000-character paste stayed inline. This uses ClipboardEvent/DataTransfer through the real handler, without exercising the physical Windows clipboard. There is no saving-state still: throttled DOM observations show saving/disabled before completed/enabled, establishing order rather than performance. The original WSL hook baseline missed the relevant directory; a later bounded supplement does not retroactively fill it. Compact model labels and clipped explanatory prose remain unattributed observations.

Upgrade QA passed independent evidence audit from main 6698df32771b736c301918c893dd5ab516a72084 to tested 4d3b4b5d12452985f65cf97ad143af1c98ba49a2 using the same isolated macOS profile. Both original chats, the exact 81-byte ordinary draft, and the opened Codex picker’s GPT-6.1-Sol/High selection survived. High was changed on main; the model was already selected. Each real agent completed two post-upgrade requests, including a 163,842-byte file read with the exact last-line marker absent from the question. Both actual saved files matched. Codex speed-selection and Claude label changes remain unattributed. Four real-config hashes matched and one Codex config hash changed; the owner attributes the latter to worker trust entries, without independent contents verification. A startup Search promotion was dismissed without opting in.

The final source check carries the unchanged client intake, admission, retained-draft and saved-state contracts from these actual 4d3 runs. The f894 merge changed Claude/Codex continuation and reply consumers, so those older provider reply/resume results do not establish current-head behavior. The audited focused f894 run above supplies provider execution evidence. The final e699 merge preserves the active Claude/Codex, store, journal, wire and send consumers. Its layout restoration and mixed-version tab consumers were traced separately and preserve structured-chat identity and draft ownership; removed exports/test support have no active callers. These source checks support carrying the named f894 evidence forward without claiming an e699 app execution.

Phone QA, with five screenshots, reports PASS with both phone and isolated server rebuilt at exact bb801256456a200da4ac9d11c5794c370618733d. Actual oversized Send displayed the 256 KB notice, retained all 276,490 bytes, and left the server journal unchanged at 10 rows with one user entry. An 82-byte native Select All/Paste replacement received a real Claude reply. The independent artifact audit passed those named flows. All 20 PNG hashes and available manifest hashes independently match. Send stayed reachable in portrait with keyboard hidden. After five of seven chunks, Paste required a hold on the blank right side; native smart paste added ten spaces. The authentication environment initially reached build/helper launches as well as server/preflight and was corrected; the lead reports no secret matches. The dynamically assigned hook port was outside the configured range and was stopped. Rotation, keyboard-visible layouts and physical devices were not exercised.

The bb8 phone/server build is historical. Its admission and exact-draft-retention contracts are unchanged on f894. Shared phone transcript folding changed only hook-outcome notices; ordinary successful reply predicates are unchanged. Current provider continuation/reply evidence is supplied by the audited focused f894 run above; no f894 phone execution is claimed.

Historical 409/572 evidence remains at its original tested heads: macOS, Windows persistence, rich draft and paired server, desktop572, and phone572. The paired run used same-machine loopback, not SSH or browser. Timed main/branch Undo controls showed that pausing about 1.1 seconds allows restoration on both; immediate Send followed by Undo left both empty. That immediate behavior is an existing failure, not a passing Undo result.

Accepted limits remain explicit: unfinished paste bytes disappear on renderer restart; completed Undo depends on the mounted editor; removing before completion can leave Redo unavailable; completed unsent files can expire after 30 days; goal-only file references retain the existing claim/expiry gap. Reserved-looking external paste/menu text becomes an unavailable pill, while typed/saved literal text can look literal yet be refused by string consumers. Phone paste-to-file conversion is the post-#30398 lane follow-up; #30359 is its merged upload dependency. Direct-create sizing and transcript presentation remain outside this change. Browser structured paste is unavailable and was not exercised; no direct browser text-adapter test is claimed. Native IME, OS clipboard/file picker and actual SSH were not exercised by these confirmations. Performance was source-reviewed, without latency/heap/burst/store benchmarks.

For Brennan’s review

Tested f894 resumed chats read the pasted files and return the exact markers:

f894 Claude exact marker reply after restart

f894 Codex exact marker reply after restart

Tested 4d3 Windows file read and retained oversized draft:

Claude returns the file marker

Codex returns the distinct file marker

Oversized message retains its draft

Main 6698 and tested4d3 ordinary draft before/after upgrade:

Main 6698: ordinary draft before upgrade

Tested 4d3: ordinary draft retained after upgrade

Historical bb8 phone refusal and real recovery reply:

bb80125: limit notice and retained draft

bb80125: shortened request receives a real reply

Historical phone main/409 control, with surrounding model labels not settings-matched:

Main: generic refusal

409: limit notice and retained draft

Three code judgments:

@brennanb2025
brennanb2025 merged commit 726c572 into main Oct 22, 2026
75 of 77 checks passed
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.

2 participants