Skip to content

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

Closed

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

Activity

  1. github-actions commented on Jan 11, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

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

Metadata

Metadata

Assignees

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