Skip to content

[Bug] Long conversations hang - session/message endpoint regression v1.14.x #27319

@Canahmetozguven

Description

@Canahmetozguven

Bug Description

Long conversations hang indefinitely. After ~20-30 messages, the session/message endpoint stops responding or returns malformed data, causing ACP clients (OpenChamber, OpenWork) to hang.

Environment

  • OpenCode version: 1.14.46 (latest tested, also fails on 1.14.48)
  • OS: Arch Linux (cachyos)
  • Bun version: 1.3.13

Steps to reproduce

  1. Use OpenCode via ACP client (e.g. OpenChamber) for an extended conversation
  2. After ~20-30 messages, the response stops
  3. Client shows spinning/loading indefinitely or silent failure
  4. Direct TUI use of the same session works fine

Root cause

What might help (from changelog analysis)

v1.14.46 had these session/message fixes:

  • Fixed numeric HTTP API query parameters in the generated OpenAPI spec and SDK for session and file endpoints
  • Tolerated legacy stored numeric values in sessions, diffs, and retry events
  • Fixed old sessions with negative token counts causing message loads to fail

v1.14.34 had:

  • Fix session views and nested session items not getting stuck with stale state
  • Improve session compaction so long threads keep more useful context

None of these fully fixed the hang for ACP clients.

Expected behavior

ACP clients should be able to load messages from long conversations reliably.

Metadata

Metadata

Assignees

Labels

No labels
No 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