Skip to content

ACP loadSessionMode doesn't restore persisted model/agent from session messages #7804

@noamzbr

Description

@noamzbr

Description

When loading an existing session via ACP, loadSessionMode() always uses defaultModel() instead of reading the model/agent from the last user message like the TUI does (prompt/index.tsx:145-148).

This causes the model/mode selection to reset to defaults when reloading a session through ACP clients.

Plugins

No response

OpenCode version

1.1.6

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 15.6.1

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

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