GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #22015

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
[Bug]: Imported ACP sessions never show history or root-session output outside a T3 turn#22015
Copy link
Labels
acceptedfeature request acceptedbugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

Description

@Ribelio
Ribelio
opened on Oct 19, 2026
Issue body actions

Before 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.

  1. Have the agent list an existing native session with a few turns of history.
  2. In T3, import that session from the ACP Registry session list.
  3. Open the imported thread without sending a prompt.
  4. Send a prompt. T3 calls session/load; the agent replays the history, then answers.
  5. 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.

Activity

  1. juliusmarminge commented on Oct 19, 2026

    @juliusmarminge
    juliusmarminge
    on Oct 19, 2026
    Member
    More actions

    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

  2. juliusmarminge
    added
    bugSomething is broken or behaving incorrectly.
    acceptedfeature request accepted
    via-triageFiled through npx t3 triage
    on Oct 19, 2026
  3. GadOfir commented on Oct 30, 2026

    @GadOfir
    GadOfir
    on Oct 30, 2026
    More actions

    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.

  4. only21mil
    added 2 commits that reference this issue on Nov 1, 2026

    fix(server): show the native history of imported ACP sessions

    d424e6a

    fix(server): bound the ACP session close and open history imports thr…

    526d793
  5. juliusmarminge commented on Nov 12, 2026

    @juliusmarminge
    juliusmarminge
    on Nov 12, 2026
    Member
    More actions

    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.

  6. juliusmarminge
    closed this as duplicateon Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfeature request acceptedbugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.