GeezerVison is showing github.com — [Bug]: Imported ACP sessions never show history or root-session output outside a T3 turn · Issue #22015 · pingdotgg/t3code
[Bug]: Imported ACP sessions never show history or root-session output outside a T3 turn #22015Labels acceptedfeature request acceptedbugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage DescriptionBefore submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server (ACP Registry import) and packages/provider-acp (AcpAdapterV2).
Steps to reproduce
Use a local stdio ACP agent (ACP Registry, source local) that advertises session/list and session/load and replays history as user_message_chunk / agent_message_chunk / tool_call updates on load.
- Have the agent list an existing native session with a few turns of history.
- In T3, import that session from the ACP Registry session list.
- Open the imported thread without sending a prompt.
- Send a prompt. T3 calls
session/load; the agent replays the history, then answers.
- While no T3 turn is active, have the agent emit
agent_message_chunk or tool_call updates for the root session (for example, work driven from another client of the same native session).
Expected behavior
- Step 3: the imported thread shows the native session's history.
- Step 4: at least the replayed history appears before the new turn.
- Step 5: root-session output outside a T3 turn appears in the thread, or is surfaced some other way.
Actual behavior
- Step 3: the thread is empty.
importAcpRegistrySession launches it with only importedNativeThread and no messages (apps/server/src/ws.ts:1468).
- Step 4: the replayed updates go to
appendLoadedHistory (packages/provider-acp/src/server/adapter.ts:3368), which writes only the adapter's internal snapshot. Only readThreadSnapshot (adapter.ts:7289, capability canReadThreadSnapshot: canLoad at :521) returns that snapshot, and nothing in apps/server calls an adapter's readThreadSnapshot. The history never reaches the projection.
- Step 5: with no active turn (
adapter.ts:3852), message chunks also go only to appendLoadedHistory, and tool_call updates only reset loading state. The post-settle wake path would buffer them, but it needs flavor.enablePostSettleContinuation (adapter.ts:317, :1296), and no flavor sets it. So the output is never shown.
References are at main 673c5e3. #21971 makes readThreadSnapshot hydrate history once after a preferred resume, but it adds no caller, so it does not change this.
Impact
An imported ACP session looks empty and shows no history even after a prompt. An agent that does work outside T3's turns looks idle in T3, so T3 can't follow an agent that is also driven elsewhere (terminal, phone).
Version or commit
npm t3 0.1.0 (t3 serve); also read on main 673c5e3.
Environment
Linux, headless t3 serve, web client. Agent: a local stdio ACP agent registered through the ACP Registry.
Workaround
The agent folds missed history into its reply to the next prompt, which turns every prompt into a catch-up. Activityjuliusmarminge commented on Oct 19, 2026 Note Grok responding on behalf of Julius.
Thanks for the thorough trace. Most of it matches current main.
The import starts the thread with only the native session reference and no messages (apps/server/src/ws.ts:1455-1480). When the session loads, replayed message chunks go to appendLoadedHistory (packages/provider-acp/src/server/adapter.ts:3964-3995), which only writes to the adapter's own snapshot. Only the adapter's readThreadSnapshot returns that snapshot (line 7289), and nothing outside tests in apps/server calls it. So an imported ACP session never shows its native history, either on open or after the first prompt. Accepting that part as a bug.
One correction: the Grok flavor does set enablePostSettleContinuation (packages/provider-grok/src/server/adapter.ts:330). The ACP Registry flavor doesn't, which is what matters here.
Showing output the agent produces outside a T3 turn, for example work driven from another client of the same session, is a different thing. T3 follows the turns it runs, and following a session that's also being driven elsewhere would be new behavior. Please raise that part in Ideas: https://github.com/pingdotgg/t3code/discussions/new?category=ideas GadOfir commented on Oct 30, 2026 We hit exactly this with a real multi-agent setup (ACP Registry, local stdio agent, T3 0.1.5): import works, history and out-of-turn output never show. Per the comment above, the "follow a session driven elsewhere" part is now in Ideas as a proposal: #27524 — happy to test a build. juliusmarminge commented on Nov 12, 2026 This is the same problem as #22155, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.
MetadataMetadataacceptedfeature request acceptedbugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage DevelopmentNo branches or pull requestsIssue actions
|