Skip to content

fix(chat): action buttons reach the assistant only, never an autonomous agent - #91

Merged
albanm merged 2 commits into
mainfrom
fix-asssistant-action
Nov 9, 2026
Merged

albanm merged 2 commits into
mainfrom
fix-asssistant-action

Conversation

@albanm

@albanm albanm commented Nov 9, 2026

Copy link
Copy Markdown
Member

Action buttons (DfAgentChatAction) now send their prompt only to the page's assistant, never to an autonomous agent. The fix is in the service's chat, so no release of lib-vuetify or lib-vue is needed.

  • A chat pinned to a configured agent ignores a button's prompt, and leaves a pending one for the assistant's chat in the same tab.
  • The back-office chat, which reopens the last conversation whatever its agent, starts a new conversation with its assistant when the open one is with an autonomous agent. It waits for the chat to finish loading first, so a prompt sent before then can't land in the reopened conversation.
  • _dev/chat-action accepts ?agentId= and ?agents=1, and a new e2e spec covers both cases (both tests fail without the fix).

Why: agents are either assistants (WebMCP tools, the person's own session) or autonomous (their own identity, MCP on the server side). A button's hidden context names the page's WebMCP tools, so its request belongs to the assistant.

Heads-up: in the back office, clicking a button while a conversation with an autonomous agent is open now switches the panel to a new assistant conversation; the old one stays in the history. A drawer pinned to an autonomous agent still shows the buttons and opens on click, but sends nothing; hiding them would need the lib-vuetify change left out here.

albanm and others added 2 commits November 9, 2026 09:41
…us agent

A button's hidden context names the page's WebMCP tools, which only an
assistant is offered. Every chat of the tab hears a button, so:

- an embed pinned to a configured agent no longer answers the buttons'
  ping nor opens on a click, and its chat ignores the action (leaving a
  pending one for the assistant's chat);
- the back-office chat, which reopens the last conversation whatever its
  agent, now starts a conversation with its assistant when the open one
  is with a configured agent, after its start so a queued prompt cannot
  land in the resumed thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chat itself already refuses an action when pinned to a configured
agent, and moves the back-office chat to its assistant, so the host
embeds' gating in lib-vuetify (and its copy of the assistant ids in
lib-vue) only hid the buttons and kept the drawer closed: cosmetic, and
it needed a release of both libraries. Dropped.

The pinned-agent spec now drives a real enrolled agent and asserts the
agent's conversation starts with what the person types: against a
made-up id the turn was refused anyway, and the spec passed without the
fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the fix label Nov 9, 2026
@albanm
albanm merged commit b5d84cc into main Nov 9, 2026
4 checks passed
@albanm
albanm deleted the fix-asssistant-action branch November 9, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant