Skip to content

fix(workbench): keep quick saves from flashing their progress state - #6358

Merged
M4n5ter merged 5 commits into
rust-previewfrom
fix/desktop-quick-save-flash
Oct 28, 2026
Merged

M4n5ter merged 5 commits into
rust-previewfrom
fix/desktop-quick-save-flash

Conversation

@UncertaintyDeterminesYou4ndMe

Copy link
Copy Markdown
Contributor

Choosing a sandbox option in the composer's Sandbox and approvals menu no longer makes the window flash.

The save takes tens of milliseconds. For that one frame the menu dimmed its choices and added a "Saving sandbox settings…" line, so the popover grew and moved up, and the page added a "Confirming action…" row that pushed the conversation down. Then everything moved back.

These progress states now appear only after a save has taken 300 ms. A slow save still shows them. The menu ignores choices while a save is pending, as before, so only the display waits. The same delay applies to the page's "Saving draft before switching…" row, which comes from the same two flags.

The approval choices now line up with the access choices above them instead of being centred.

AI use

  • Generative tooling made a substantive contribution

Tool(s) and scope: Claude Code wrote the change and this description; its commit carries Generated-by: Claude Code.

Choosing a sandbox option saves in tens of milliseconds, but the menu
dimmed its choices and added a "Saving sandbox settings…" line, and the
page added a "Confirming action…" row, for that one frame. The popover
grew and moved and the page shifted, then everything moved back.

Show these progress states only once the save has taken 300 ms. Choices
made while it is pending are still ignored. Also align the approval
choices with the access choices above them.

Generated-by: Claude Code
Store one FTS document posting per distinct 1/2/3-scalar gram and omit unused occurrence positions. Pack Unicode scalars in a rolling key to deduplicate before token encoding. Rank literal matches by non-overlapping term coverage over folded text, retaining the ToolResult half weight, Turn-best selection, stable ties and cross-partition limits. Ranking changes intentionally; NFC-then-lowercase matching and canonical transaction/delete lifecycle remain.

Extend the existing 10k fixture with an independent literal oracle for Unicode boundaries, false candidates, overlap, density, weighting, limits and cross-partition ordering. Validation: 6 focused, 596 event-log, 109 Engine and 415 Linux release tests passed; strict all-target clippy, formatting, notices and dependency checks passed. The ordinary default CLI/client and frozen source audit passed.

The ordinary R26 run remains active. Its first window measured 3.282 MB/tool, with a different output mix from R25; write/output remained comparable. A later nonstationary growth interval measured 7.218 MB/tool. First16 each reached 1000 real tools and a provider steady-phase acknowledgement, while growth to4096, final capacity and Host shutdown remain unverified. This representation change makes no overall performance or cleanup claim.

Generated-by: Codex
* fix(workbench): clearer copy and message source icons

The copy icon draws the sheet behind only where the front one leaves it
visible, instead of two outlines crossing. The message source toggle
shows the Markdown mark instead of code brackets.

Generated-by: Claude Code

* fix(workbench): show the source toggle of interim replies on hover

Generated-by: Claude Code

@Astro-Han Astro-Han 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.

Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.

I reviewed all three changed files at 903db809cbf5106400d3ade22a0de03879a67eea, including delayed.ts, both progress-display call sites, the sandbox menu handlers and the existing createSessionPermissions.select pending guard. I found no actionable P0–P2 issue in this scoped static review.

delayed.ts:29–36 schedules the visible state after 300 ms, clears it when activity ends and registers timer cleanup with the reactive effect. In SessionPermissionsSelect.tsx, the visible disabled/progress state is delayed, while the selection handler's immediate pending guard still prevents a second permission mutation. The App's error/status and unresolved-operation feedback remain independent of the delayed working row. The approval-choice alignment is a display-only change. I also checked NSH's effect/cleanup lifecycle implementation; I did not execute that runtime.

Integration still needs reconciliation: an actual static merge with current rust-preview (3f60d59d54525788f16a68e2b8086a658b0263f1) reports a content conflict in products/maka/workbench/app/App.tsx, where the feedback layout has changed. Please preserve the current layout when applying the delayed feedback and validate the reconciled commit. There are no exact-head checks at this inspection. No database schema or Runtime Host protocol changes are in this diff.

I did not build Rust, measure visible flicker or frame/layout changes, or run native desktop/terminal tests. The intended visual improvement and menu behavior still need native validation.


Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.

@github-actions github-actions Bot added the effort/S Under 100 readable lines label Oct 28, 2026
…uick-save-flash

# Conflicts:
#	products/maka/workbench/app/App.tsx
@M4n5ter
M4n5ter merged commit b9d0d13 into rust-preview Oct 28, 2026
@M4n5ter
M4n5ter deleted the fix/desktop-quick-save-flash branch October 28, 2026 07:23
M4n5ter added a commit that referenced this pull request Oct 28, 2026
Preserve the current plugin root and overlay layout while delaying only the transient progress display.

Generated-by: OpenAI Codex
M4n5ter added a commit that referenced this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/S Under 100 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants