Skip to content

Keep async questions open across agent notices - #34368

Closed
gentslava wants to merge 2 commits into
stablyai:mainfrom
gentslava:gentslava/fix-agent-notice-question-controls
Closed

gentslava wants to merge 2 commits into
stablyai:mainfrom
gentslava:gentslava/fix-agent-notice-question-controls

Conversation

@gentslava

@gentslava gentslava commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Status: superseded upstream

The fix for #34357 was accepted in #35758 and merged as f26fb1cfdaad94f0935be80e630b61c7eddd4fa1 on 2026-10-30. That PR explicitly credits this contribution. The production change to src/shared/native-chat/input/native-chat-ask.ts is identical; upstream also added desktop/mobile consumer regressions. It is present in upstream main 5c2bfed9483.

Closing this PR as superseded. No branch deletion is requested. The historical implementation and validation below retain their original revisions.


ELI5

Keep a pending async question available when an unrelated agent notice arrives. Preserve the interactive answer controls and immediate answer path.

Fixes #34357.

Scope and dependency

One feature commit on upstream main bd4702fbb536a8034d647116efe0064cf3b13f24, with 6 changed paths. Current head: 4d23c05adccc094b02281747bc80afd4ad9df03f. Generated catalogs and guide bundles are produced from this branch's own source.

Validation

At this exact head: desktop and CLI typechecks; normal commit hooks; mobile typecheck; 22 node targeted tests; 11 mobile targeted tests; quality; paths; focus passed.

These are scoped local checks on macOS with background launch policy. The full integrated aggregate is tracked separately. GitHub Actions, maintainer approval, packaged-app, live-provider and physical-device acceptance are separate states.

Visual Proof

The following retains the earlier capture context and artifacts. This base refresh does not claim new rendered or physical-device acceptance.

Synthetic English records, actual production async wrapper/card, same 560px fixture. Before: pinned main scanner with the new fixture; after: this PR. The blank before canvas is the missing question card. Four approved headless light/dark captures had zero page errors; no private screenshot is published.

Before light

Before light

After light

After light

Complete light/dark evidence and exact source revisions.

AI assistance

Implemented and checked with Codex assistance. The contributor owns the change and its validation.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

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: 15a18c9f-e817-4dec-b344-fa7ef5c82df6
Commits

Reviewing files that changed from the base of the PR and between 4d23c05 and d29b3d5.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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: 1708f2a9-afc7-41d5-acad-45b84c316377
Commits

Reviewing files that changed from the base of the PR and between c534853 and d8f23e5.

Files selected for processing: 1
  • src/shared/native-chat/input/native-chat-ask.test.ts

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

Walkthrough

The pending-ask scanner now keeps async questions open across agent-origin messages and clears them on interruption or a delivered non-agent message. Shared tests cover these conditions and undelivered user-message states. Desktop and mobile tests cover transcript loading, question retirement after a human answer, and option or text submission when an orchestration notice is present. A desktop fixture renders an async question followed by an orchestration notice.

Priority: Normal

Severity of issue fixed: Medium

Merge Risk: Minimal · previous review d8f23

The change preserves pending questions across agent notices while retaining human answer and interruption handling.

Pre-merge checks: Passed 4
Check name Status Explanation
Linked Issues check Passed Issue #34357 requires active async questions to retain choice and free-text controls across agent-origin notices. The current scanner clears a question on interruption or on a delivered message withou…
Out of Scope Changes check Passed The changes remain within issue #34357. The source change is limited to pending async-question settlement. The fixtures and shared, renderer, desktop, and mobile tests directly verify the missing cont…
Title check Passed The title clearly summarizes the main change: keeping async questions open when agent notices arrive.
Description check Passed The description explains the user impact, links issue #34357, provides visual proof, and documents validation and AI assistance. It does not use the template's exact What Changed, Why, Testing, Review…
Full details: Linked Issues check

Explanation

Issue #34357 requires active async questions to retain choice and free-text controls across agent-origin notices. The current scanner clears a question on interruption or on a delivered message without from.kind: agent; it retains the question across agent notices. Added shared, renderer, and mobile tests cover agent notices, human answers, interruption, loading, and option/text answer paths. No ignored files limit this assessment.

Full details: Out of Scope Changes check

Explanation

The changes remain within issue #34357. The source change is limited to pending async-question settlement. The fixtures and shared, renderer, desktop, and mobile tests directly verify the missing controls and preserved answer behavior. The summary shows no provider, permission, queue, transport, wire, dependency, or execution changes.

Full details: Description check

Explanation

The description explains the user impact, links issue #34357, provides visual proof, and documents validation and AI assistance. It does not use the template's exact What Changed, Why, Testing, Review, Notes, and Checklist sections, but the required information is mostly present.

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

gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
@gentslava
gentslava force-pushed the gentslava/fix-agent-notice-question-controls branch from 27204ae to 9b1c54e Compare October 28, 2026 07:18
@gentslava
gentslava force-pushed the gentslava/fix-agent-notice-question-controls branch from 9b1c54e to 4d23c05 Compare October 28, 2026 09:25
@gentslava gentslava changed the title fix(chat): keep async questions open across agent notices Keep async questions open across agent notices Oct 28, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 30, 2026
@gentslava gentslava closed this Oct 30, 2026
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.

[Bug]: Active asynchronous questions show no answer controls

1 participant