fix(kanban): list the configured agents in the Delegate dialog (#116) - #119
Merged
Merged
Conversation
GET /api/external-agents answers the agent map itself (the SPA reads it that way), but the board read `res.agents` off it, so since #109 the Kanban Delegate dialog said "No agents configured" on every install - even with the four built-in agents present. Picking the agent, the model and the effort all depended on that list, which is why the dialog looked like it had no provider, no models and no context. - loadExternalAgents() reads the map; an error body or an array is {}. - The empty state now says where agents actually live (the Agents section of the main page's sidebar, with a command template) instead of "add via Settings", which pointed nowhere. - One hint line under Model/Effort: the options come from that agent's own catalog, and "-" leaves the choice to the agent. - The success toast says where to follow the run: the ⇗ badge on the card. test/kanban-delegation.test.js runs the real loadExternalAgents against the server's response shape, and pins that shape on the server side too. Fixes #116 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #116.
Root cause
GET /api/external-agentsanswers the agent map itself (res.json(config.externalAgents || {}), server.js; the SPA reads it that way, index.html).kanban.htmlreadres.agentsoff it, so since #109 the Kanban Delegate dialog showed "No agents configured (add via Settings)" on every install, including one with the four built-in agents. The missing provider, models and effort context in the report all come from that empty list: an agent card IS the provider (Codex, Gemini, Claude Code…), and Model/Effort are filled from the selected agent's catalog.Changes (
public/kanban.html)loadExternalAgents()reads the map; an error body or an array →{}.i18n-completeness139/0.Verification
npm test→ exit 0.test/kanban-delegation.test.js: new check runs the realloadExternalAgentsagainst the server's response shape, and pins that shape in server.js. It fails againstmain's kanban.html.main:cards: [],"No agents configured (add via Settings)", even with agents configured.⚡Codex, 🟠Claude, Antigravity CLI, opencode; Modelgpt-5, o4, Effortlow, highfrom the agent's catalog; hint visible; 0 page errors.Not in scope (answered in the issue)
🤖 Generated with Claude Code