Skip to content

fix(tui): keep cancel latch, sanitize @-refs, collapse notices - #87

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-approval-cancel-ac-notices-7291
Sep 5, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/fix-approval-cancel-ac-notices-7291

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

What

Seventh self-improvement pass after v1.4.6. Three bugs, RED-first, reviewer-validated.

  1. Approval expiry and answer dropped the cancelling latch. v1.4.6 gated thinking/token/tool_call via setRunStatus, but answer() and handleApprovalExpiry still assigned thinking / approval required directly. After cancel restored the queue into the composer, expiry or deny let Enter re-queue the draft. Those paths (plus approval_request and approvalSendErrMsg) now use setRunStatus.

  2. @ completion painted and inserted raw /api/resources fields. Label/Detail leaked CSI into the popup; ID was spliced into the composer. Collapse at ingest, paint, and insert.

  3. Engine notices kept raw newlines. --plain already collapses skill/memory/signal; the alt-screen strip used sanitize (CSI gone, newlines kept), so a wire SkillName like "x\n● disconnected" painted a second chrome-like row. addTransientNote now collapses.

Tests

  • TestCancelApprovalDoesNotClobberCancelling (expiry / deny)
  • TestResourceCompletionSanitizesWireFields
  • TestEngineNoticesCollapseNewlines

make fmt / vet / lint 0 issues. make test race green.

Expert review: APPROVE.

Open in Web Open in Cursor 

Approval expiry and answer dropped the cancelling latch so Enter
re-queued restored drafts. @-completion painted and inserted raw
resource fields. Engine notices kept newlines from the wire.

Co-authored-by: admin <admin@21no.de>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bodek 801a165 Commit Preview URL

Branch Preview URL
Sep 05 2026, 08:13 PM

@jkyberneees
jkyberneees marked this pull request as ready for review September 5, 2026 20:15
@cursor
cursor Bot merged commit 801a165 into main Sep 5, 2026
8 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.

2 participants