Skip to content

fix(macos): keep Quick Chat model and speed choices current - #144804

Merged
obviyus merged 10 commits into
mainfrom
fix/macos-quick-chat-catalog
Sep 11, 2026
Merged

obviyus merged 10 commits into
mainfrom
fix/macos-quick-chat-catalog

Conversation

@obviyus

@obviyus obviyus commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #136257, #144762.

What Problem This Solves

Fixes an issue where Quick Chat retained stale model choices after a catalog update and did not expose the published Fast setting.

Why This Change Was Made

Quick Chat consumes the shared catalog and Fast-state projections. Settings changes use the existing session route and queue, then reload canonical state. Catalog updates refresh the open picker while preserving its draft and rejecting late results from an older presentation.

User Impact

Refused models show guidance and cannot be selected; unknown availability remains selectable. Published effort and speed choices are available, and settings settle before sending.

Consumers: Quick Chat model and speed controls use shared session catalog facts.

Evidence

A connected real-Gateway test reproduced the stale picker and passed after the fix. Native validation passed two UI cases, 83 native cases and 11 projection tests. Captures were inspected, but clipping limits prevent a claim about expanded-menu visual quality. Shortcut proof invoked its registered callback; it did not use a physical key event.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: XL maintainer Maintainer-authored PR labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 11, 2026, 5:21 AM ET / 09:21 UTC.

ClawSweeper review

What this changes

Quick Chat refreshes model choices after Gateway catalog updates, adds session speed controls, and reloads canonical settings after changes, with native presentation and lifecycle coverage.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains useful follow-up work to the merged Apple catalog projection. Current main lacks the Quick Chat publication listener and speed controls, and no concrete introduced correctness or security defect was found.

Priority: P2
Reviewed head: a4fb81fae244e97e384e4a7ced120cd259ce0fc1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with meaningful native and lifecycle coverage and no blocking code finding; visual artifact inspection remains outstanding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The supplied MEMBER author status exempts this PR from the ordinary external-contributor gate. The verified macOS run exercises production AppKit presentation and menu actions with a fake Gateway socket; retained captures and raw logs could not be inspected because the artifact host is blocked.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER author status exempts this PR from the ordinary external-contributor gate. The verified macOS run exercises production AppKit presentation and menu actions with a fake Gateway socket; retained captures and raw logs could not be inspected because the artifact host is blocked.
Evidence reviewed 8 items Distinct work remains on main: The relevant production files have no base-branch changes since the pinned merge base. Current-main Quick Chat has no speed submenu; the introduced patch adds speed selection and catalog-publication handling.
Existing settings transport retained: Quick Chat now uses the existing session-settings route lease. The transport captures a server lease and checks its currency when dispatching the settings request; this does not introduce a new authorization or persistence owner.
Native boundary and lifecycle coverage: The new native presentation test presses the rendered accessibility control, inspects the resulting AppKit menus, and exercises model and speed actions through production transport encoding with a fake WebSocket. Separate tests cover publication refresh, late reads after reopening, and accepted/rejected speed-write retry behavior. These tests were inspected, not executed locally.
Findings None None.
Security None None.

How this fits together

Quick Chat is the macOS floating chat composer. It reads model capabilities and session settings from the Gateway, presents available choices, and settles settings changes before sending messages.

flowchart LR
  A[Gateway catalog publications] --> B[Presentation refresh]
  C[Session settings and model catalog] --> B
  B --> D[Quick Chat controls]
  D --> E[Session settings route lease]
  E --> C
  E --> F[Settings settlement]
  F --> G[Message send]
Loading

Before merge

  • Resolve merge risk (P1) - Native visual output remains uninspected because artifact access was blocked; the PR also explicitly limits what its clipped panel captures establish about expanded-menu appearance.
  • Complete next step (P2) - Inspect the retained native captures before merge to complete the visual review that this environment could not perform.
Agent review details

Security

None.

PR surface

Other +819. Total +819 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 13 1005 186 +819
Total 13 1005 186 +819

Review metrics

Metric Value Why it matters
Production versus test growth production +95 net lines; tests +720 net lines Production growth adds publication lifecycle handling and shared speed projection; most growth covers native interaction and settlement regressions.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep Quick Chat as a consumer of the shared Gateway projection and existing session-settings transport, preserving canonical state and presentation-scoped draft choices.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep Quick Chat as a consumer of the shared Gateway projection and existing session-settings transport, preserving canonical state and presentation-scoped draft choices.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current-main Quick Chat loads controls without subscribing to catalog publications, leaving an open presentation stale after publication changes. No runtime reproduction was executed during this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the shared projection and route lease is a focused repair, and the shared-chat Fast precedence remains unchanged.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f551ccc6fcf4.

Labels

Label changes:

  • add P2: This repairs stale model controls and completes speed selection in the optional macOS Quick Chat surface.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER author status exempts this PR from the ordinary external-contributor gate. The verified macOS run exercises production AppKit presentation and menu actions with a fake Gateway socket; retained captures and raw logs could not be inspected because the artifact host is blocked.

Label justifications:

  • P2: This repairs stale model controls and completes speed selection in the optional macOS Quick Chat surface.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER author status exempts this PR from the ordinary external-contributor gate. The verified macOS run exercises production AppKit presentation and menu actions with a fake Gateway socket; retained captures and raw logs could not be inspected because the artifact host is blocked.

Evidence

What I checked:

Likely related people:

  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete visual inspection of the retained native captures from an environment that can access the GitHub artifact.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@obviyus
obviyus merged commit f2c4e63 into main Sep 11, 2026
140 checks passed
@obviyus
obviyus deleted the fix/macos-quick-chat-catalog branch September 11, 2026 09:53
@obviyus

obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

Proof: The connected Quick Chat test passes against the reused real Gateway fixture from #144762. The same publication test fails on the baseline because Quick Chat retains the old model name after the Gateway publishes the new one.

  • Bug: Quick Chat retained stale catalog choices and lacked published speed controls.
  • Fix: Shared catalog projection, presentation-scoped refresh, and canonical reload after model/speed writes.
Before After
Published model name stays stale in Quick Chat The open presentation refreshes and preserves its draft
No connected proof of settings reload Saved speed override clears and model selection reloads from the same Gateway session

Connected candidate, connected baseline, and exact-head CI. Native menu/presentation tests, 67 config/state/recovery tests, 33 catalog/auth tests, and all 17 real Gateway startup checks passed. The retained corpus command inconsistency is documented with direct base proof in the PR body.

Fresh exact-head review cleared all findings and security concerns. Guarded merge: f2c4e63ed6b4aba89aa95ddbed09b5cd150a9b60. No admin or unrelated-CI exception was used. Temporary workflow and staging branch retired; original captures were inspected with their visual limits recorded.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…#144804)

Related: openclaw#136257
Projection owner: openclaw#144762

## What Problem This Solves

Quick Chat could keep stale model choices after a catalog update and did not expose the published Fast setting. Its picker must preserve the Gateway's availability and thinking decisions, including refusal guidance and selectable rows whose availability is unknown.

## Why This Change Was Made

Quick Chat consumes the shared OpenClawKit catalog projection introduced in openclaw#144762. Both chat surfaces now use one Fast-state projection. Model and speed changes use the existing session-settings route lease and target queue, then reload canonical catalog/session state. This removes the partial patch-response model/thinking derivation.

Catalog publications refresh the open picker without losing its draft; late reads cannot replace a reopened presentation. The nonactivating panel preserves Attach text and Paste reply targeting. Native tests exercise the registered shortcut callback and require the panel/editor to present even while the application does not own foreground.

## User Impact

- Refused model rows are disabled with the published guidance; unknown availability remains selectable.
- Effort labels come from the catalog, and speed offers Session default, Fast, and Normal when applicable.
- Settings changes settle before sending. Rejected speed changes preserve the retry key for an unchanged draft.
- Reopening Quick Chat retains the correct catalog and presentation state.

## Evidence

- [Connected native candidate](https://github.com/openclaw/openclaw/actions/runs/34584437164) passes at this exact PR head using the real Gateway fixture from openclaw#144762/run 34571594676. A real catalog publication refreshes the same Quick Chat presentation without losing its draft. Clearing a saved speed override and choosing the unknown-availability model both reload canonical session state. No inference server or transport mock was added.
- [Connected baseline](https://github.com/openclaw/openclaw/actions/runs/34585094303) reproduces the missing refresh on main `b61d1dab`: the Gateway publishes the new model name, but Quick Chat retains the old name. Build, connection, and publication pass before the stale-name assertion fails. The baseline's existing test guard suppresses its panel, so this is publication-state red, not a visual baseline.
- [Exact-head CI](https://github.com/openclaw/openclaw/actions/runs/34583201846) passed.
- [Final targeted macOS run](https://github.com/openclaw/openclaw/actions/runs/34581841571): app/native builds, 2 XCTest UI cases, 83 Swift Testing cases, and 11 shared projection tests passed. Includes rendered model selection, effort, Fast/default, refused/unknown rows, publication, stale reads, and send retry behavior.
- [Earlier resumed run](https://github.com/openclaw/openclaw/actions/runs/34581142507): the same picker and lifecycle proof passed; its first attempt failed before compilation on an HTTP 500 while downloading SwiftLint.
- [Baseline picker red](https://github.com/openclaw/openclaw/actions/runs/34566007763): refused row enabled, guidance missing, and inferred effort options. The candidate's native menu records show the corrected states.
- The final rebase was followed by 67 passing config/state/recovery tests and real Gateway startup/list/create/command transport checks for all 17 sanitized config fixtures, with fake credentials and external networking disabled. Legacy roster used Doctor repair before startup.
- Focused catalog/auth protocol tests passed. Retained Telegram Test Server `/models` proof returned the provider selector with zero inference requests.

Original and connected native captures were inspected locally and by an independent validator. Artifacts retain native menu JSON, real Gateway/session records, and panel images. Panel captures have clipping/transition limits; they do not establish expanded-menu visual quality. The shortcut proof invokes the registered callback and observes a visible editor with application-active/key-window state false; it does not claim a physical key event, foreground ownership, signing, or permission grants.

The corpus also exposed an unchanged base issue: the generic-token `/models` command advertises an OpenAI fallback while the published catalog is empty. Startup and command transport succeed; complete command/catalog semantic parity is not claimed. This PR changes only native app code and its tests.

No protocol version or schema change. The temporary proof workflow is removed from this PR; its task staging branch is retired and artifacts are retained. No shipped test behavior is deleted; existing fixtures are adapted to the typed settings provider, and the new speed tests cover accepted and rejected writes.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant