Skip to content

Codex harness: project live tool calls as Control UI / WebChat tool cards #75641

@ygc3817922006-sketch

Description

@ygc3817922006-sketch

Summary

When using the Codex harness (codex/* model refs) from Control UI / WebChat, tool execution appears to run correctly, but the UI does not show Codex-style live tool-call cards or tool progress. The user only sees assistant text updates and the final response, which makes long tool-using runs feel opaque compared with Codex App.

Why this seems like an OpenClaw projection/parity gap

The public docs suggest the pieces should exist:

  • Control UI advertises Chat support for streaming responses with live tool-call output.
  • TUI docs say tool calls show as cards with args/results and partial updates stream into the same card, via agent tool events.
  • Codex Harness docs say OpenClaw still builds the tool list and receives dynamic tool results from the harness, while text/media/approvals/tool output continue through the normal OpenClaw delivery path.

However, in Control UI / WebChat with Codex harness, those dynamic tool events do not appear as visible tool cards/progress in the chat surface.

Observed behavior

  • A Codex harness run can perform tool work successfully.
  • The final assistant reply is delivered.
  • The chat surface does not expose the intermediate tool call lifecycle as cards, e.g. tool started, args, output/progress, success/failure.
  • Users must infer progress from assistant preambles or inspect logs/session history separately.

Expected behavior

For Codex harness runs, Control UI / WebChat should render the same kind of tool-call cards/progress that OpenClaw already exposes for native agent tool events, at least for OpenClaw gateway tools invoked through the harness.

A useful first version would be:

  • emit/render a tool-call start card with tool name and compact args;
  • stream or append tool output/progress into that card;
  • mark completion/failure;
  • preserve assistant text blocks before/between/after tools without duplication.

Implementation question

Is Codex harness currently dropping or not projecting native Codex/app-server tool lifecycle events into the standard OpenClaw agent event stream used by Control UI / WebChat?

If this is already intended to work, please document the required config/version flags. If it is not currently supported, this would be a useful Codex harness parity enhancement.

Related issues found before filing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions