Skip to content

ACP agent never sends session_info_update session updates #21013

Closed as not planned

Description

@ThisCCL

Description

Problem
The ACP protocol defines session_info_update as a valid SessionUpdate type (with title and updatedAt fields), but the OpenCode ACP agent implementation never emits it.

In packages/opencode/src/acp/agent.ts), the handleEvent method only handles three event types:

1.permission.asked
2.message.part.updated
3.message.part.delta

There is no handler for session metadata changes (e.g. when a session title is auto-generated after the first prompt turn).

Expected behavior
When the session title is generated or updated, the ACP agent should send a session_info_update to connected clients:

await connection.sessionUpdate({
sessionId,
update: {
sessionUpdate: "session_info_update",
title: newTitle,
},
})

Context
The SessionInfoUpdate type is already defined in the ACP SDK (@agentclientprotocol/[email protected]) with title?: string | null and updatedAt?: string | null fields.
Session titles are generated asynchronously in packages/opencode/src/session/prompt.ts after the assistant responds.
ACP clients (e.g. editors) have no way to learn that a session title has changed, since the update is never forwarded.

Impact
ACP clients cannot display up-to-date session titles. The title shown at session creation time remains stale forever.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Apr 4, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. added a commit that references this issue on Apr 5, 2026
    99d4bed
  3. removed
    bugSomething isn't working
    on May 3, 2026
  4. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  5. gultaj commented on Oct 18, 2026

    @gultaj

    Still reproducible on opencode 2.0.32 (checked with a scripted ACP client: zero session_info_update messages for the whole session, while session/list already returns the generated title seconds after the turn). Filed a fresh issue with an up-to-date V2 reproduction and source pointers: #56894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions