Skip to content

Allow /tools-connect mid-conversation #1463

Closed

Description

@jhrozek

A user working in a broker-backed mecak8s conversation should be able to run /tools-connect after any completed turn to refresh the configured protected-tool bundle without clearing the session or losing its history. Refresh is an explicit destructive replacement: broker tools are unavailable while it runs and remain unavailable if it fails or is cancelled. After a broker-process restart, the same conversation should continue to work without broker tools, and its owner should be able to restore them with /tools-connect; an ordinary prompt must never trigger reconnection, browser consent, or OAuth work implicitly.

Technically, extend the existing ConnectWorkspaceServices begin/observe/retry/cancel flow from fresh-empty sessions to owner-authorized stable idle sessions while preserving its opaque correlation and whole-bundle authenticated discovery. Retry must serialize cancel-and-begin against prompt entry; starting refresh must withdraw the broker-bearing engine and attachment through a narrow completed-enrollment reset rather than broad session deletion; and completion must use an ordered fail-closed publication sequence across catalogue discovery, engine construction, binding/authority update, and persistence, reporting connected only after all succeed. Persisted tool names alone must never confer executable authority after process loss, ordinary rehydration must build without broker wrappers, and the existing ToolHive credential-custody and broker-mode single-replica boundaries remain unchanged.

Activity

  1. changed the title [-]Allow idle broker sessions to refresh workspace tools without clearing the conversation[/-] [+]Allow /tools-connect mid-conversation[/+] on Sep 14, 2026
  2. self-assigned this
    on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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