Skip to content

[Bug]: "Message ID alias capacity exceeded. Cannot allocate more than m9999 aliases in this session" when using with a long-term running session #452

@jiwangyihao

Description

@jiwangyihao

Bug Description

When LLM called compress, below error occured:

error: Message ID alias capacity exceeded. Cannot allocate more than m9999 aliases in this session.
at allocateNextMessageRef (C:\Users\34404.cache\opencode\node_modules@tarquinen\opencode-dcp\dist\lib\message-ids.js:110:15)at assignMessageRefs (C:\Users\34404.cache\opencode\node_modules@tarquinen\opencode-dcp\dist\lib\message-ids.js:91:21)at (C:\Users\34404.cache\opencode\node_modules@tarquinen\opencode-dcp\dist\lib\hooks.js:90:9)

2026-03-22T04-28-23-409Z.json
2026-03-22T04-27-02-797Z.json
2026-03-22T04-27-48-878Z.json
2026-03-22T04-28-11-362Z.json

Expected Behavior

No errors.

Debug Context Logs

Meet length constraits so uploaded in Bug Description Section.

Tool Call Details

No response

DCP Version

3.0.4

Opencode Version

1.2.27

Model

Other (specify in description)

Additional Context

I'm using GitHub Copilot's GPT-5.4 model

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions