Skip to content

ACP resume does not replay history and session list titles stay generic #21718

@i-oliva

Description

@i-oliva

What happened?

When OpenCode is used through an ACP client like agent-shell, reopening an existing session via ACP resume can restore the session id/config without replaying the prior conversation, so the client opens the session but does not show the earlier messages.

In the same ACP workflow, session/list can surface generic titles like New session - ... even when the first real user prompt would be a much better label for session pickers.

Expected behavior

  • ACP resume should replay the existing session history so ACP clients can render the earlier conversation.
  • ACP session lists should expose a readable fallback title when the persisted session title is still the default placeholder.

Reproduction

  1. Open an OpenCode session from an ACP client such as agent-shell.
  2. Have a short conversation and close the client.
  3. Reopen that same session through ACP resume.
  4. Notice that the prior conversation is not replayed.
  5. Look at ACP session lists for untitled sessions and notice generic New session - ... labels.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions