Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates. Includes Local workflows for coding assistants.
JavaScript agent-orchestrationagentic-workflowai-agentsai-codingclaude-codecode-reviewcodebuddycodexcoding-agentscursordeveloper-toolshuman-on-the-loopllmmcpmulti-agentsdlcself-hostedsopworkflow-automationworkflow-engine
fix(chatbot): search every dispatch's model and show the full model name
tester106ab910c451
diff --git a/chatbot/src/ArtifactPanel.jsx b/chatbot/src/ArtifactPanel.jsxindex 6681a1b2..fa2eef41 100644--- a/chatbot/src/ArtifactPanel.jsx+++ b/chatbot/src/ArtifactPanel.jsx@@ -345,6 +345,8 @@ export default function ArtifactPanel({subagentName(agent),agent.subagent,agent.agentId,+ // Every dispatch's model: a resumed agent may have run on several.+ ...Object.values(agent.models || {}),agent.model,subagentStatus(agent, live).label,...agent.dispatches.map((step) => step.detail),diff --git a/chatbot/src/artifact-panel.css b/chatbot/src/artifact-panel.cssindex 0d7fb532..ffb8ef37 100644--- a/chatbot/src/artifact-panel.css+++ b/chatbot/src/artifact-panel.css@@ -278,6 +278,10 @@font-size: 11px;}.chat-shell .artifact-panel > .artifact-preview-toolbar .node-header-meta {+ /* Status plus a model name (「已完成 · deepseek-v4.1-flash-ioa」) needs more+ than the 150px other headers allow; the title gives way first. */+ flex: 0 1 auto;+ max-width: min(320px, 55%);overflow: hidden;font-size: 10px;text-overflow: ellipsis;diff --git a/chatbot/tests/subagents.test.jsx b/chatbot/tests/subagents.test.jsxindex 839c3b99..5ba71073 100644--- a/chatbot/tests/subagents.test.jsx+++ b/chatbot/tests/subagents.test.jsx@@ -130,6 +130,29 @@ describe("dispatched subagents", () => {]);});+ test("searching the artifacts finds a resumed subagent by an earlier dispatch's model", async () => {+ const dispatch = (id, extra = {}) => ({ kind: "tool", id, tool: "Agent", detail: `任务 ${id}`, role: "测试工程师", ...extra, at });+ const messages = [+ { role: "user", content: "补单测" },+ {+ role: "assistant",+ model: "deepseek-v4.1-flash",+ activity: [+ dispatch("c1"), { kind: "agentModel", parent: "c1", model: "hy4flash", at }, { kind: "toolDone", id: "c1", agentId: "agent-aaa", at },+ dispatch("c2", { agentId: "agent-aaa" }), { kind: "agentModel", parent: "c2", model: "glm-5.3-flash-ioa", at }, { kind: "toolDone", id: "c2", agentId: "agent-aaa", at },+ ],+ },+ ];+ const chat = { session: { id: "s1", projectId: "p1", messages }, projectId: "p1", projects: [] };+ render(+ <div className="chat-shell">+ <ArtifactPanel artifacts={[]} runs={[]} selected={null} setSelected={vi.fn()} chat={chat} onClose={vi.fn()} open />+ </div>,+ );+ await userEvent.type(screen.getByRole("searchbox", { name: "搜索产物" }), "hy4flash");+ expect(screen.getByRole("button", { name: /测试工程师/ })).toBeTruthy();+ });+test("the 子 Agent card and its session show the model it ran on", async () => {const messages = [{ role: "user", content: "补单测" },diff --git a/internal/httpapi/assistant_stream.go b/internal/httpapi/assistant_stream.goindex b5c1a887..0f5a99af 100644--- a/internal/httpapi/assistant_stream.go+++ b/internal/httpapi/assistant_stream.go@@ -198,7 +198,7 @@ func assistantLineEvents(line string) []assistantStreamEvent {switch evt.Type {case "assistant":var out []assistantStreamEvent- if model := strings.TrimSpace(evt.Message.Model); subAgent && model != "" {+ if model := strings.TrimSpace(evt.Message.Model); subAgent && model != "" && !assistantPlaceholderModel(model) {// assistantStreamEvents puts it under the dispatch (Parent).out = append(out, assistantStreamEvent{Kind: "agentModel", Model: truncateRunes(model, 128)})}@@ -329,6 +329,12 @@ func assistantToolStreamEvent(id, name string, input json.RawMessage) (assistantvar assistantAgentIDRe = regexp.MustCompile(`Agent ID:\s*(agent-[A-Za-z0-9-]+)`)+// assistantPlaceholderModel reports a model name the CLI puts on lines no+// model produced, such as "<synthetic>" on a synthesized assistant message.+func assistantPlaceholderModel(model string) bool {+ return strings.HasPrefix(model, "<") && strings.HasSuffix(model, ">")+}+// assistantDispatchModel is the model an Agent call names for its subagent.// No model, or one that only says to inherit, leaves it to the reply's own.func assistantDispatchModel(model string) string {@@ -337,6 +343,9 @@ func assistantDispatchModel(model string) string {case "", "default", "inherit":return ""}+ if assistantPlaceholderModel(model) {+ return ""+ }return truncateRunes(model, 128)}diff --git a/internal/httpapi/assistant_subagents_test.go b/internal/httpapi/assistant_subagents_test.goindex 68c3901c..7c2d7308 100644--- a/internal/httpapi/assistant_subagents_test.go+++ b/internal/httpapi/assistant_subagents_test.go@@ -356,6 +356,7 @@ func TestSubagentStreamEventsCarryTheirDispatch(t *testing.T) {`"model":" lite "`: "lite",`"model":"default"`: "",`"model":"inherit"`: "",+ `"model":"<synthetic>"`: "",} {got := assistantStreamEvents(`{"type":"assistant","message":{"content":[{"type":"tool_use","id":"call-m","name":"Agent","input":{"subagent_type":"Explore","prompt":"x",` + input + `}}]}}`)if len(got) != 1 || got[0].Model != want {@@ -368,6 +369,10 @@ func TestSubagentStreamEventsCarryTheirDispatch(t *testing.T) {if len(ran) != 2 || ran[0].Kind != "agentModel" || ran[0].Model != "deepseek-v4.1-flash-ioa" || ran[0].Parent != "call-1" {t.Fatalf("subagent line=%+v", ran)}+ // A synthesized line names no real model.+ if synthetic := assistantStreamEvents(`{"type":"assistant","parent_tool_use_id":"call-1","message":{"model":"<synthetic>","content":[{"type":"text","text":"ok"}]}}`); len(synthetic) != 1 || synthetic[0].Kind != "agentText" {+ t.Fatalf("synthetic line=%+v", synthetic)+ }if main := assistantStreamEvents(`{"type":"assistant","message":{"model":"deepseek-v4.1-flash-ioa","content":[{"type":"text","text":"ok"}]}}`); len(main) != 1 || main[0].Kind != "answer" {t.Fatalf("main line=%+v", main)}