Skip to content

feat(site): render workflow tool calls - #246

Merged
ibetitsmike merged 6 commits into
mainfrom
mike/workflows-ui-1-cards
Nov 12, 2026
Merged

ibetitsmike merged 6 commits into
mainfrom
mike/workflows-ui-1-cards

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Xum acted for @ibetitsmike: this PR was written and opened by an agent.

Chats that call run_workflow or await_workflow now show a workflow card instead of the generic tool fallback. This is the first of three stacked UI PRs for the fork-workflows experiment; the next two add a Workflows side panel and a Stop control.

The card header shows the run status badge and step progress ("2 of 3 steps reported"). The body shows the run ID, the run error, a step list where each step links to its child chat (with a Reused badge for resumed steps), the result, logs, script path, script and arguments. Long text previews the first lines and expands behind Show more into a scrollable block. Tool errors (for example a compile error from run_workflow) render as the tool error. A result that does not parse as a run falls back to the generic renderer, and unknown statuses from a newer server render as a neutral badge.

The shared pieces (status badge, step list, long text, result parser) live in components/ForkWorkflows/ because the Workflows panel in the next PR reuses them. The renderer is registered only in the fork-owned forkToolRenderers.tsx and forkToolIcons.ts, behind the experiment.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T15:05:52.407615Z c9b28f9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for @ibetitsmike.

@codex review

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for @ibetitsmike.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: c9b28f9d4b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike
ibetitsmike merged commit 7fde60f into main Nov 12, 2026
9 checks passed
@ibetitsmike
ibetitsmike deleted the mike/workflows-ui-1-cards branch November 12, 2026 15:45
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

I checked these on head c9b28f9: all check runs passed (fork-ci 43243286382, including site lint:types and the AgentsPage vitest run), the branch is 0 commits behind main, 0 review threads are unresolved, and the Codex receipt on this head found no major issues. The test audit passed: all 6 negative controls turned red, then the tests passed 7/7. UAT-246 passed 5/5 on :3100 behind fork-workflows: zero-step run, a step linking to its child chat, a tool error, collapsible long text (keyboard included), and clean console and reload.

Declined nit: aria-controls on Show more (aria-expanded is already set).

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