Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pingdotgg/t3code
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: pingdotgg/t3code
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/issue-30240
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 11 commits
  • 3 files changed
  • 2 contributors

Commits on Nov 3, 2026

  1. test(opencode): reproduce #30240, prompt sent while T3 MCP is pending

    The adapter adds T3's MCP server and prompts at once; OpenCode still
    reports the server pending, so its tools arrive mid-turn.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    1f2eeb3 View commit details
    Browse the repository at this point in the history
  2. fix(opencode): prompt only once OpenCode has connected T3's MCP server

    OpenCode 2 answers mcp.add for a fresh Location while the server is still
    pending, so T3's tools joined the Code Mode catalog mid-turn and restarted
    Claude-backed turns. After adding, read mcp.list and wait for
    mcp.status.changed until the server settles, bounded by INVENTORY_TIMEOUT.
    A server that does not connect keeps the instructions without T3's tools.
    
    Fixes #30240
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    4dab4e7 View commit details
    Browse the repository at this point in the history
  3. fix(opencode): let OpenCode load T3's MCP tools before prompting

    OpenCode reports T3's MCP server connected before its tool registry picks
    up the tools on a 100 ms debounced reload, and nothing reports that reload.
    A prompt sent in that gap still gets the tools mid-turn, which restarts
    Claude-backed turns.
    
    Watch the server's mcp.status.changed from before mcp.add. When this turn's
    add (re)connected it, wait 300 ms before prompting. An unchanged re-add of a
    connected server emits no status change on OpenCode 2.2.5, so steady-state
    turns pay nothing.
    
    Fixes #30240
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    1cfb53d View commit details
    Browse the repository at this point in the history
  4. fix(opencode): settle on a first MCP registration even if its event t…

    …rails
    
    OpenCode's status event can reach T3 after the mcp.list reply that already
    reads connected, which skipped the settle on a thread's first registration.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    6052e44 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    398a71b View commit details
    Browse the repository at this point in the history
  6. fix(opencode): withdraw a T3 MCP server that is still connecting at p…

    …rompt time
    
    A server still pending when the connected wait times out could finish its
    handshake after the prompt and add T3's tools mid-turn.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    71185ad View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bd8abbe View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2026

  1. Configuration menu
    Copy the full SHA
    95e4eb4 View commit details
    Browse the repository at this point in the history
  2. fix(opencode): tell a dropped T3 MCP server from a live one by its st…

    …atus before the add
    
    A reconnect's status event can trail the list reply, so an add after idle
    eviction could prompt before OpenCode loaded T3's tools. List the server's
    status before re-adding instead of racing the event.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    2d32160 View commit details
    Browse the repository at this point in the history
  3. fix(opencode): withdraw T3's MCP server when its add fails or times out

    OpenCode keeps connecting a server whose add request timed out, so its tools
    could still join mid-turn. A failed add now takes the same withdrawal as a
    server that is still connecting, under one timeout for the add and the wait.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    270b791 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2026

  1. fix(opencode): settle T3's MCP tools when a reconnect lands during th…

    …e add
    
    A server that read connected before the add could still be reconnected by
    it, so the turn skipped the tool settle. Seeing it pending after the add, or
    a reconnect that forgot it, now counts as a join too.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    3d15106 View commit details
    Browse the repository at this point in the history
Loading