Add effort badge to chain summary
Snapshot the agent's effort onto the chain (like model) so it survives reload, archive and shared chains, then show it in the chain-end meta line. - ChainRecord.Effort + chains.effort column (TryAddColumn migration). - CreateChain INSERT carries the value. - ChatService snapshots agent.Effort at chain creation, but only for Claude models – OpenAI providers store '' so there is no misleading badge. - Anthropic streaming + CLI done-events include effort for the live path. - chat.js buildMetaBadges renders "Effort: <level>" after the model badge, only when a value is set. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
381530dbfe
commit
a58f279eaa
7 files changed
+16
-6
No files matched your search
@@ -220,8 +220,8 @@ public partial class DatabaseService
|
||||
using var conn = CreateConnection();
|
||||
chain.CreatedAt = DateTime.UtcNow.ToString("o");
|
||||
await conn.ExecuteAsync(@"
|
||||
INSERT INTO chains (chain_id, session_id, archive_id, agent_id, model, system_prompt, tool_choice, tool_names, input_tokens, output_tokens, iterations, stop_reason, duration_ms, plan_mode, created_at)
|
||||
VALUES (@ChainId, @SessionId, @ArchiveId, @AgentId, @Model, @SystemPrompt, @ToolChoice, @ToolNames, @InputTokens, @OutputTokens, @Iterations, @StopReason, @DurationMs, @PlanMode, @CreatedAt)
|
||||
INSERT INTO chains (chain_id, session_id, archive_id, agent_id, model, system_prompt, tool_choice, tool_names, input_tokens, output_tokens, iterations, stop_reason, duration_ms, plan_mode, effort, created_at)
|
||||
VALUES (@ChainId, @SessionId, @ArchiveId, @AgentId, @Model, @SystemPrompt, @ToolChoice, @ToolNames, @InputTokens, @OutputTokens, @Iterations, @StopReason, @DurationMs, @PlanMode, @Effort, @CreatedAt)
|
||||
", chain);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user