Skip to content

Report Cursor terminal PING timeouts as failed turns and reconcile Cursor usage - #3216

Open
Flame119052 wants to merge 1 commit into
get-bb:mainfrom
Flame119052:fix/cursor-ping-turn-failure-and-usage
Open

Report Cursor terminal PING timeouts as failed turns and reconcile Cursor usage#3216
Flame119052 wants to merge 1 commit into
get-bb:mainfrom
Flame119052:fix/cursor-ping-turn-failure-and-usage

Conversation

@Flame119052

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

Cursor cloud transport failures (RetriableError: [unavailable] PING timed out) arrive over ACP as agent message text with stopReason: end_turn, so BB recorded the turn as completed instead of failed: a silent fake-success with no error notification and no retry path. Separately, the Cursor usage mapping dropped the dashboard total (totalPercentUsed) and bonus spend, rejected string-encoded percentages, and the sidebar bootstrap had no recovery for transient startup outages.

What changed

  • packages/provider-bridge-acp/src/bridge/bridge.ts: track terminal Cursor error text per turn; a turn ending with exactly the PING timeout text now fails legibly with an error notification. Gated to the Cursor dialect, \\n\\nError: prefix, 512-char cap, and no trailing recovery text.
  • packages/provider-bridge-acp/src/bridge/provider-maintenance.ts: surface Total usage and Bonus spend windows from the live dashboard response; accept string-encoded percentages.
  • apps/app/src/hooks/queries/sidebar-navigation-query.ts: retry transient/502-504 bootstrap failures with backoff plus polling recovery.
  • plugins/provider-acp: rename to provider-acp-opencode-native, wire Grok/OpenCode native usage maintenance.
  • Tests for all of the above.

How you verified

  • @bb/provider-bridge-acp: 325 passed (18 files), including 8 new PING-normalization cases and 3 new usage cases.
  • Sidebar bootstrap suite: 11 passed.
  • turbo run typecheck --filter=@bb/provider-bridge-acp --filter=@bb/app: pass.
  • plugins/provider-acp server suite: 18 passed. (public-sdk-only flags pre-existing local build artifacts in the worktree only; unaffected files.)
  • Live cursor-agent acp probe: connection and tool-use checks pass, so the timeout is transient Cursor-side, not a BB misconfiguration.

AGENT GENERATED

@Flame119052
Flame119052 force-pushed the fix/cursor-ping-turn-failure-and-usage branch from 645ec4b to 2483938 Compare September 7, 2026 14:14
…rsor usage

Cursor transport failures arrived as agent text with stopReason end_turn, so BB recorded them as completed turns. Track terminal Cursor error text per turn and fail the turn legibly instead. Also surface the dashboard total and bonus-spend windows, tolerate string-encoded percentages, and make the sidebar bootstrap survive transient startup outages.
@Flame119052
Flame119052 force-pushed the fix/cursor-ping-turn-failure-and-usage branch from 2483938 to e2e4093 Compare September 7, 2026 14:25
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