Skip to content

mecatui: finish /agent integration for session-scoped agent definitions #2384

Open

Description

@kantord

Context

#2055 (draft) adds the /agent <name> command and an interactive picker to mecatui on top of the session-scoped agent definitions backend in #2003. This issue tracks the remaining work to make that integration safe to merge.

Known remaining work

  • Older-server safety: the client should require the session_agent_definitions feature and verify the resolved_agent_definition_name echo before sending a prompt, so an older server cannot silently produce an ordinary session.
  • Failed-session handoff: /agent currently closes the old session and resets the local transcript before the new session exists. Create first, switch on success, and keep the old session if creation fails.
  • Effective configuration display: the client reports the requested mode, while the server may clamp it to the definition's ceiling. Show the server-enforced mode, and surface the real error text instead of a generic "unknown definition" message for other failures such as an unavailable pinned provider.
  • Model selection semantics: decide whether a definition's own model/provider pin or the client's current selection wins when the client sends a selection, and make the client behave accordingly.
  • Input handling: /agent while a run is active currently discards the typed text without a message.

Acceptance

Related: #2003, #2055.

Fully or partially written by an AI agent.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions