Skip to content

fix(ux): chat, approvals and onboarding polish - #333

Merged
sambitcreate merged 15 commits into
mainfrom
ux/chat-approvals-onboarding
Oct 4, 2026
Merged

sambitcreate merged 15 commits into
mainfrom
ux/chat-approvals-onboarding

Conversation

@sambitcreate

Copy link
Copy Markdown
Owner

Summary

  • Stop and the queue (UI-47/48): Stop keeps queued follow-ups paused and offers Resume.
  • Approvals (UI-49, partial): they no longer steal typing focus.
  • Escape stops (UI-77): Escape stops a response from an empty, focused composer. Drafts, menus, dialogs and IME composition keep Escape.
  • Inline send blocks (UI-78): the 8 reasons a send can be refused show as a hint under the composer instead of a toast.
  • Chat states (UI-39/40/42/43): empty, failed and loading states each have a next step: Retry, or Connect a provider.
  • Errors (UI-41, UI-32): generation failures are announced as alerts. Electron's remote-method wrapper is stripped at the IPC boundary.
  • Onboarding (UI-24/25/30/31):
    • Fixes a bug where the window drag strip covered Skip provider.
    • Explains why Next is blocked.
    • Drops a contradictory header and duplicate toasts.
  • Smaller fixes:
    • A drop-to-attach overlay (UI-44).
    • A countdown before an ask-user question expires (UI-51).
    • Single-choice options shown as buttons (UI-50).
    • A reason when the thinking control is unavailable (UI-52).
    • Voice errors stay readable (UI-69) and name the right provider (UI-67).

Test plan

  • 205 unit tests.
  • Playwright: chat-message-queue 19/19, plus guided-setup and onboarding-lmstudio.
  • Type-check, type-check:e2e and lint.

Part of the October optimization pass. Finding IDs refer to docs/performance/optimization-audit-2026-10-03.md (#320). The branch's .memory/ note has per-finding rationale.

🤖 Generated with Claude Code

sambitcreate and others added 15 commits October 3, 2026 20:26
…dary (UI-32)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sing (UI-67)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…yping focus (UI-47, UI-48, UI-49)

- Stop pauses the queue instead of discarding it; Resume or delete remain.
- A new approval takes focus only when the user is not typing or in an overlay.
- The approval card shows its queue position, and remember-scope buttons
  expose their explanation through aria-describedby, not only a tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-39, UI-40, UI-42, UI-43)

EmptyState gains an action slot. With no usable provider the new-chat state
offers Connect a provider; a chat that fails to load shows an alert with Try
again instead of the new-chat prompt; the loader is a status region. Setup
CTAs share one verb and one destination label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der and duplicate toasts (UI-24, UI-25, UI-30, UI-31)

Next names why it is disabled while ChatGPT sign-in is pending. The header no
longer claims setup is required beside Skip provider. Provider errors are
announced once by the inline alert. The Other ways panel is no longer a live
region. The removed source-grep line is replaced by a rendered e2e flow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pill window cannot take focus, so a 2 s error was often gone before it
could be read. Errors now stay at least 4 s, longer for longer guidance, and
never more than 10 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-44)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…UI-52)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s (UI-51)

The countdown owns its own tick so the chat pane does not re-render every
second, and it announces once when about 30 seconds remain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…UI-50)

Activating an option answers and advances, which radio semantics with arrow-key
selection cannot describe. Multi-select options stay checkboxes. Replaces the
source-grep role assertion with a rendered check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hem (UI-47)

Existing Stop specs asserted the old discard behavior; they now check the
queue stays paused and nothing is sent. The new pause spec waits for the
queue action before pressing Enter, as the other queue specs do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…trip (UI-24)

The absolute drag strip covered most of the header button, so pointer clicks
on Skip provider landed on the strip. Also stop relying on the old aria-live
panel staying exposed behind the modal provider dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… explain inline (UI-77, UI-78)

Escape in the focused, empty composer now acts as Stop; menus, the slash
palette and dialogs keep Escape, and a draft keeps it harmless. Blocked
sends show their reason beside the composer, described on the textarea,
instead of a toast, and the hint clears when the draft or mode changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog 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.

Important

The inline send warning remains visible after switching to a model that can accept the draft.

Reviewed changes — Reviewed the full PR’s chat, composer, approval, onboarding, and voice behavior.

  • Queue and composer: Stop preserves paused follow-ups; Escape stops from an empty composer; blocked sends explain inline; file drags show an attachment target.
  • Approvals and questions: Approvals preserve typing focus and describe scope; single-choice questions use buttons and timed questions show a countdown.
  • Chat feedback: Loading and generation errors are announced, failed loads offer Retry, and unavailable providers have a Settings action.
  • Onboarding and voice: Provider deferral stays clickable, blocked Next explains its prerequisite, IPC errors lose transport prefixes, and voice errors use clearer copy and longer display times.

Validation: 159 focused tests passed, application and E2E type checks passed, and Playwright collected all 26 affected specs. Electron E2E requires macOS and was not run locally.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol | 𝕏

Comment on lines +1533 to +1538
blockedSend.text === text &&
blockedSend.attachments === attachments &&
blockedSend.skill === selectedSkill &&
blockedSend.busyMode === busyMode &&
blockedSend.generating === isGenerating &&
blockedSend.busy === (gitOperationBusy || attaching)

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.

[P2] Clear the vision warning when the selected model becomes compatible

After an image send is blocked, switching to a vision-capable model leaves “Switch to a vision-capable model before sending these images” visible and attached to the textarea’s accessible description. I reproduced this with the mounted production composer: the warning persists after visionSupported changes to true, even though sending the unchanged draft succeeds.

Technical details
# Stale model-capability send hint

## Affected sites
- renderer/components/composer.tsx:445-453 — blockedSend records draft and busy state but no model capability.
- renderer/components/composer.tsx:1531-1540 — the equality checks keep the warning visible when only visionSupported changes.
- renderer/components/composer.tsx:1595-1599 — the image refusal depends on visionSupported.

## Required outcome
- Resolving the image-capability refusal by selecting a compatible model clears the inline warning and its accessible description without requiring a draft edit.
- Extend the existing mounted Composer coverage to block an image send, change model capability while retaining the draft, and verify the hint disappears before sending.

## Suggested approach
Include the relevant capability in the snapshot invalidation, or derive the displayed hint from whether its original validation condition still holds.

@sambitcreate
sambitcreate merged commit bfe12bd into main Oct 4, 2026
22 checks passed
@sambitcreate
sambitcreate deleted the ux/chat-approvals-onboarding branch October 4, 2026 08:40
sambitcreate added a commit that referenced this pull request Oct 6, 2026
Verify with a harness-level admission test that a phone "Queue to run next"
follow-up admitted into Pi's queue stays as transcript history after Stop,
is never run or replayed into the next turn, and is not returned as
undelivered input. Align desktop's committed-but-not-admitted notices with
the iOS and Android receipt copy, and refresh the busy-controls doc's
On The Go column (Queue, Redirect, receipts, question cards, / and @) and
the desktop Stop row (#333 pauses the queue instead of clearing it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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