Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(clients): reload provider sessions per thread without restarting T3 Code #6162

ClosedDavidIlie(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/6162/headopened View on GitHub

What changed

Provider processes load MCP servers and runtime configuration when they start. Existing threads therefore required a full T3 Code restart to pick up changes such as enabling Computer Use.

This adds Reload agent session to thread actions and the command palette on web/desktop, plus thread controls on mobile. It stops only that thread's provider process; the next message starts a new process and resumes the stored provider conversation with current configuration. Other threads and the environment keep running.

Reload reuses the existing stop/resume lifecycle and works across Codex, Claude Code, Cursor, Grok, and OpenCode. An idle-only precondition is checked atomically by the decider, so a stale client cannot interrupt a turn started elsewhere.

Closes #5437.

Screenshots

BeforeAfter
Thread actions without reloadThread actions with Reload agent session

Validation

  • 107 focused client, orchestration, reactor, and provider tests passed
  • Contracts, client-runtime, web, mobile, and server typechecks passed
  • Targeted lint, formatting, and git diff --check
  • Isolated web pass confirmed reload followed by a successful resumed turn through a fresh provider process

Model: GPT-5.6 Sol · Harness: Codex in T3 Code

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: ef6ee823-29b7-47ea-9318-3c49bc055666

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs human review

      This PR introduces a new user-facing feature (reload agent session) with UI controls across mobile and web, backend decider logic changes, and contract modifications. New features introducing user-facing behavior warrant human review.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium

      https://github.com/pingdotgg/t3code/blob/3a3d4f6a6c5c9591a0fbff470002a80fa916cb5f/apps/mobile/src/features/threads/ThreadRouteScreen.tsx#L884

      The Reload agent session button never appears in the iOS native header when the thread transitions from no session to a reloadable session. reloadSessionControl changes from undefined to a live control once reloadAvailability switches from "hidden", but NativeStackScreenOptions is not given optionsVersion for this change. That component deliberately avoids re-applying header factories unless optionsVersion changes, so an iOS header initially rendered without the Reload button stays stale and never gains it. Pass reloadSessionControl (or the derived header items) to the optionsVersion prop of NativeStackScreenOptions so the native header configuration is re-applied when reload availability changes.

      ✅ Resolved in 4b473859e9c2822b59c873ec979e51f76e64d2c5

    5. Fixed in 4b473859e. NativeStackScreenOptions now versions the header with the stable reloadAvailability value, so iOS reapplies the native header when the control becomes visible, hidden, enabled, or disabled without reapplying it on unrelated renders. Mobile typecheck, targeted lint/format, and the shared availability tests pass.

    6. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    7. Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    8. Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work.

      Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look.

    9. juliusmarminge closed this

Sign in to join this conversation.