Skip to content

Show queued and no-op tool results as outcomes, not failures - #303

Merged
iamwavecut merged 1 commit into
mainfrom
fix/admin-run-tool-status-tone
Nov 20, 2026
Merged

iamwavecut merged 1 commit into
mainfrom
fix/admin-run-tool-status-tone

Conversation

@iamwavecut

Copy link
Copy Markdown
Owner

Problem

After #302 was deployed, the LLM run timeline showed a draw_image call that had queued its job in the failure tone: a red step, a red queued badge and a red waterfall bar. Both renderers treated any tool status other than ok as a failure.

Change

Tool results use five statuses, defined in openplotva-dialog (TOOL_RESULT_STATUS_*): ok, executed, queued, noop and failed. Only failed now sets the failure tone. The status badge takes its tone from the status:

Status Badge tone
ok, executed success
queued info
noop and unknown statuses neutral
failed danger

Verification

  • cargo test -p openplotva-web: 21 passed. The index.html sha256 is updated.
  • node --check on every inline script: no errors.
  • Live check: I loaded the patched functions into the production admin page and re-rendered a real draw_image run. The step has no failure tone, the badge is badge-info, and the waterfall bar uses the tool colour.

The run timeline marked every tool status other than "ok" as failed, so a
draw_image call that queued its job rendered in the failure tone. Tool
results use five statuses (ok, executed, queued, noop, failed); only
"failed" is a failure. The badge now takes its tone from the status.
@github-actions

Copy link
Copy Markdown
Messages
📖 Danger checked 2 changed file(s).

Generated by 🚫 dangerJS against e9a0094

@iamwavecut
iamwavecut merged commit 8933ef9 into main Nov 20, 2026
12 checks passed
@iamwavecut
iamwavecut deleted the fix/admin-run-tool-status-tone branch November 20, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant