Skip to content

Keep pending native chat messages marked as sending - #37590

Merged
brennanb2025 merged 3 commits into
mainfrom
brennan/sta-13520-pending-steered-messages-lose-their-delivery-indicator
Nov 3, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennan/sta-13520-pending-steered-messages-lose-their-delivery-indicator

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

A message steered into a running native chat could lose “Sending…” as soon as Orca recorded it, even while it was still waiting to reach the agent. It then looked like a delivered message.

The transcript now keeps the existing “Sending…” label while the host reports delivery as pending, including after handoff while awaiting acknowledgment. Acceptance restores ordinary message metadata; rejection shows the existing failure, and an unknown outcome retains its existing appearance. This changes rendering only: delivery, queueing, Stop, retry, journal state and wire payloads are unchanged. It applies to desktop and the web transcript, including chats on remote hosts. Native phone UI is unchanged.

Tracked in STA-13520.

Plan: derive the indicator from existing published submission state instead of ending it at host recording; retain rejection-only journal-item scans and existing localized wording. Brennan approved the pending indicator after comparing the common pattern. No new capability/default, saved-data or older-host change, phone interaction, or contradictory ruling. Intended: the existing “Sending…” label is reused instead of adding a permanent steer label. Intended: unknown delivery stays ordinary, preserving the existing uncertainty policy.

Review classification: full. Independent review found this repeats the undelivered-looking-delivered symptom addressed by #24606 within 30 days, despite changing rendering only. A private plan and design review cover both reply/transcript arrival orders and render stability before repair. No lifecycle, queue, ownership, saved-data, retry, wire, process, auth or default changes are proposed.

Validation: the original rendered regression fails on main in all three settlement cases. The repaired head passes 31 tests across four named renderer/notice suites, including reply-first and journal-first ordering, terminal-state precedence, and a real-hook contract at 32 and 320 messages proving bounded work, stable unrelated rows and an update only to the accepted row. All 41 local changed-code checks passed, including selected typechecks. Light/dark component screenshots cover pending, accepted and rejected states. Independent full review, final reference/performance review and final-commit CI passed. The final main merge left all six PR files unchanged and its narrow review passed. QA classification: native-chat UI, tests row; no real-agent lifecycle run is needed for this presentation-only change.

@brennanb2025
brennanb2025 marked this pull request as ready for review November 2, 2026 23:35
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f37a3c71-2b54-4ba9-943e-376cd862b4e5
Commits

Reviewing files that changed from the base of the PR and between c4b42d8 and b453a5a.

Files selected for processing: 3
  • src/renderer/src/components/native-chat/structured-agent-session-delivery-notices.test.ts
  • src/renderer/src/components/native-chat/structured-agent-session-delivery-notices.ts
  • src/renderer/src/components/native-chat/use-structured-agent-session-delivery-notices.test.tsx

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

Walkthrough

Pending submissions now produce a “Sending…” delivery notice. The hook passes all submissions to notice generation, while rejection detection continues to control loading of start-failure facts and command item IDs. Added fixtures and tests cover pending, handed-over, accepted, rejected, and unknown dispatch states. Rejected submissions display their refusal reason.

Merge Risk: Minimal · up to b453a

Pending messages retain their sending indicator through handoff. No merge-blocking issue was identified.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description explains the problem, the scope, and the validation evidence in detail. It does not follow the repository template. It has no ELI5 section, no separate "What Changed" and "Why" section… Restructure the description to follow the repository template. Add: an ELI5 summary in plain language; a "What Changed" section that states the before and after behavior as a user sees it; a "Why" section that explains why this approach was…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: preserving the “Sending…” state for pending native chat messages.
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 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 4 functions across 6 files.

Resolution

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

Full details: Description check

Explanation

The description explains the problem, the scope, and the validation evidence in detail. It does not follow the repository template. It has no ELI5 section, no separate "What Changed" and "Why" sections in template form, no "Fixes #" issue link (it cites STA-13520 only as a tracker reference), no Visual Proof section with BEFORE/AFTER media (it mentions screenshots, but none are attached or linked), no Risk level, no AI Disclosure, no Review/upstream-boundary checkbox, and no Testing checklist items marked. The content is substantive, so the description is mostly there, but several required sections are missing.

Resolution

Restructure the description to follow the repository template. Add: an ELI5 summary in plain language; a "What Changed" section that states the before and after behavior as a user sees it; a "Why" section that explains why this approach was chosen over alternatives. Under "Linked Issue", replace the bare tracker reference with a real issue link using "Fixes #<number>" (or confirm that the author is a stablyai maintainer and that no issue is needed). Under "Visual Proof", attach BEFORE and AFTER screenshots or a video for the pending, accepted, and rejected states, or switch to the N/A form with a reason. Under "Testing", state the platforms tested (macOS, Linux, Windows, SSH) and mark the manual-test and automated-test checkboxes. Under "Risk", add a Level (Low, Medium, or High), state what could break, and explain how to revert. Fill in "AI Disclosure" if an AI model was used, or leave it blank only if the author is a stablyai team member. Complete the "Agent skill upstream boundary" checkbox. Trim the validation narrative to test results that a reviewer can reproduce.

Finishing Touches
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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@brennanb2025

brennanb2025 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

A message could lose “Sending…” when Orca recorded it, while it was still waiting for the agent. This PR keeps the existing label until the published delivery state settles. The recorded local copy also stays marked while waiting for its transcript record, so reply/transcript arrival order cannot flash the label off and back on.

Full independent review and the design panel confirmed a rendering-only change using existing delivery state. No queue, retry, host, saved-data or wire changes. Unknown outcomes keep their existing appearance, and native phone UI is unchanged. Rejection-only scans remain gated; no separate delivery state is added.

Verified: 31 tests across four named suites; all 41 changed-code checks passed both before and after the main sync. The hook contract checks 32 and 320 messages, operation bounds, map identity, and row render counts. Light/dark screenshots below were regenerated after reviewed/tested head b453a5a. Final-head CI passed. Review and reference/performance checks passed with no open findings. Main merge 408eeb0 leaves all six PR files unchanged; that narrow merge was independently checked and the earlier evidence carries.. No real-agent run was required: changed flows are native-chat UI/tests rows. No deferred blocking findings.

For Brennan’s review:

Pending, dark Pending, light
(screenshot removed: contained real product data) (screenshot removed: contained real product data)
Accepted Rejected
(screenshot removed: contained real product data) (screenshot removed: contained real product data)

@brennanb2025
brennanb2025 merged commit 9f1b14d into main Nov 3, 2026
48 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.

1 participant