Skip to content

feat(tui): forward rx4 recovery and spill/failure host events - #22

Merged
undivisible merged 2 commits into
mainfrom
cursor/forward-rx4-recovery-events-33ca
Sep 11, 2026
Merged

undivisible merged 2 commits into
mainfrom
cursor/forward-rx4-recovery-events-33ca

Conversation

@undivisible

@undivisible undivisible commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Thin host wiring only. telekinesis stays a CLI/TUI host for rx4; the agent loop stays in rotary.

Pin

  • rx4 → git tschk/rotary @ 74698cfb8dc4654336f4710fe9d1a9a14a340699 (rotary#184 draft should-fixes)
  • default-features = false, features providers + builtin-tools (GUI keeps computer-use)

Host Event match

TUI, CLI, and GUI share ui/tui/src/host_events.rs (EventExt). Direct typed match:

  • RetryReason { retry_reason, layer }
  • ProcessStdin { process_id, bytes }
  • ProcessStart { process_id, program } / ProcessEnd { process_id, exit_code }
  • RequestPermissions { tool, paths }
  • PatchHunk { path, hunk }
  • Recovery { action, reason }RecoveryKind: prefill | nudge | retry | halt
  • ToolSpill { status, locator, original_bytes }SpillStatus

Guessed JSON-only FailureNotice / { action, layer, text } Recovery stubs are gone. Unknown Event variants stay ignored. Rendered like ToolExecution / ApprovalRequired. No harness policy.

Validate

cd ui/tui && cargo fmt --check && cargo clippy --locked -- -D warnings
cd ui/gui && cargo fmt --check && cargo clippy --locked --lib --no-default-features -- -D warnings
Open in Web Open in Cursor 

Add HostSurface stubs for forthcoming Event::Recovery (Prefill/Nudge/Retry/Halt)
and typed spill/failure notices. JSON match compiles on the current rx4 pin.

Co-authored-by: Max Carter 祁明思 <max@tsc.hk>
@undivisible
undivisible marked this pull request as ready for review September 7, 2026 03:49
@cursor

cursor Bot commented Sep 7, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_dc3e1c37-232a-4f87-964a-1f655e6c2ef5)

Bump rotary to the should-fix SHA and forward typed Event::Recovery,
Event::ToolSpill, and ProcessStart/ProcessEnd from TUI/CLI/GUI.

Co-authored-by: Max Carter 祁明思 <max@tsc.hk>
@undivisible
undivisible merged commit fea001c into main Sep 11, 2026
3 checks passed
@undivisible
undivisible deleted the cursor/forward-rx4-recovery-events-33ca branch September 11, 2026 15:00
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