Skip to content
Source
Sign inSign up
pingdotgg/t3code

Usage-limit auto-resume sends "Continue where you left off." instead of using resumeTurn #45645

Openvibhor1102(GitHub profile, opens in a new tab) opened this issue 0 comments

What happened

When a thread auto-resumes after a usage-limit reset, T3 Code injects "Continue where you left off." as a text prompt even on providers that support promptless native resumeTurn (Codex, Claude, Cursor, OpenCode).

Diagnosis

Manual continuations (manualContinuationOfRunId) were migrated to promptless native resume in ProviderTurnStartService.ts: when manualResume && unsentResumeMessage === undefined and there is no pending inline context/handoff, ProviderTurnStartService sets resume: true and calls session.resumeTurn, falling back to RESUME_PROMPT ("Continue where you left off.") only when session.resumeTurn === undefined (e.g. ACP providers) or pending context requires a prompt.

However, UsageLimitRecoveryWorker.ts (limitRecoveryCommand) still hardcodes text: "Continue where you left off." with usageLimitContinuationOfRunId, and ProviderTurnStartService.ts only checks run.manualContinuationOfRunId !== undefined for manualResume — not usageLimitContinuationOfRunId. As a result, all usage-limit auto-resumes bypass session.resumeTurn and send a literal text prompt.

(Note: RestartContinuation.ts intentionally uses a custom CONTINUE_PROMPT warning about potentially in-flight/completed side-effecting commands after a crash, so only usageLimitContinuationOfRunId is missing the resumeTurn migration.)

Steps to reproduce

  1. Enable "Resume at reset" (autoResumeLimitedThreads).
  2. Run a thread on a provider that implements session.resumeTurn (e.g. Codex or Claude) until it fails with a usage limit that has a reset time.
  3. Wait for the reset time so UsageLimitRecoveryWorker triggers auto-resume.
  4. Observe turn/start in the provider event log: it sends input: [{ type: "text", text: "Continue where you left off." }] instead of calling session.resumeTurn (input: [] on Codex).

Version

0.1.13 (source-verified on upstream/main at d17aa43c82)

Environment

Linux 7.3.5-200.fc44.x86_64 x86_64, Node v24.22.2, codex-cli 0.172.0

Evidence

[2026-11-29T11:51:43.620Z] outgoing turn/start: input=[{"type":"text","text":"Continue where you left off."}]

#29746 (closed) changed UsageLimitRecoveryWorker from createdBy: "user" to "agent", but did not migrate usageLimitContinuationOfRunId to session.resumeTurn.

Fix applied or workaround

None applied.

Filed by

Antigravity (Gemini 4 Hydrogen) via triage playbook

  1. vibhor1102(GitHub profile, opens in a new tab) added labelsvia-triage

  2. tanstack-source added labelsbug

Sign in to join this conversation.