Skip to content

[codex] prefer terminal reply fields in CLI JSONL parser - #59920

Closed
mySebbe wants to merge 5 commits into
openclaw:mainfrom
mySebbe:codex/fix-cli-jsonl-final-answer
Closed

mySebbe wants to merge 5 commits into
openclaw:mainfrom
mySebbe:codex/fix-cli-jsonl-final-answer

Conversation

@mySebbe

@mySebbe mySebbe commented Apr 2, 2026 •

Copy link
Copy Markdown

## Summary

  • Problem: the CLI JSONL parser only special-cases Claude type:"result" events and otherwise falls back to generic text collection, so OpenAI/Codex-style fallback runs can lose terminal reply semantics.
  • Why it matters: in channel-visible fallback paths, commentary/intermediate text can be surfaced instead of the actual final answer even when the JSONL stream already contains phase:"final_answer" and task_complete.last_agent_message.
  • What changed: parseCliJsonl() now prefers task_complete.last_agent_message, then assistant messages tagged phase:"final_answer", and skips commentary-phase generic item text.
  • What did NOT change (scope boundary): Claude CLI handling is unchanged, no dispatch/channel code changed, and no provider failover logic changed.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

Root Cause / Regression History (if applicable)

  • Root cause: parseCliJsonl() was written around Claude type:"result" lines plus a generic parsed.item.text fallback, but it did not understand newer OpenAI/Codex-style JSONL terminal fields.
  • Missing detection / guardrail: there was no parser preference for task_complete.last_agent_message or phase:"final_answer", and no guard against treating commentary item text as the outbound reply.
  • Prior context (git blame, prior PR, issue, or refactor if known): the current behavior is discussed in [Bug]: CLI JSONL fallback parser drops final-answer semantics and can surface commentary instead #59918 as a narrower parser-path issue adjacent to the broader channel-leak family in Text between tool calls leaks to messaging channels #25592.
  • Why this regressed now: unknown as a specific regression point; this appears more like a compatibility gap exposed by fallback runs that emit richer JSONL event shapes.
  • If unknown, what was ruled out: this fix does not depend on channel dispatching, failover selection, or Claude stream-json parsing.

Regression Test Plan (if applicable)

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file: src/agents/cli-output.test.ts
  • Scenario the test should lock in: when JSONL contains commentary, final_answer, and task_complete, the parser returns the terminal answer; when only final_answer is present, it wins over commentary text.
  • Why this is the smallest reliable guardrail: the bug lives entirely inside the JSONL parsing function and can be reproduced with synthetic line fixtures without needing a live provider or channel.
  • Existing test that already covers this (if any): existing Claude result tests in src/agents/cli-output.test.ts cover the Claude-specific path and remain unchanged.
  • If no new test is added, why not: N/A

User-visible / Behavior Changes

  • OpenAI/Codex-style CLI fallback runs now prefer terminal reply fields instead of surfacing commentary when both are present in JSONL.
  • Commentary-only generic item text is no longer treated as the final reply in this parser path.

Diagram (if applicable)

Before:
CLI JSONL -> generic text collection -> commentary can win -> user sees wrong reply

After:
CLI JSONL -> task_complete / final_answer preferred -> terminal answer wins -> user sees final reply

Security Impact (required)

  • New permissions/capabilities? No
  • Secrets/tokens handling changed? No
  • New/changed network calls? No
  • Command/tool execution surface changed? No
  • Data access scope changed? No
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

  • OS: Linux (local contributor checkout)
  • Runtime/container: Node.js + pnpm
  • Model/provider: parser coverage for OpenAI/Codex-style CLI JSONL output; Claude path rechecked via existing tests
  • Integration/channel (if any): N/A for unit verification
  • Relevant config (redacted): CLI backend output: "jsonl"

Steps

  1. Feed parseCliJsonl() a JSONL stream containing commentary events plus a terminal task_complete.last_agent_message.
  2. Feed parseCliJsonl() a JSONL stream containing commentary plus assistant phase:"final_answer" content.
  3. Run the targeted parser tests.

Expected

  • Terminal answer fields win over commentary.
  • Claude JSONL result handling still passes unchanged.

Actual

  • Verified with targeted tests after the patch.

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Human Verification (required)

  • Verified scenarios: pnpm exec vitest run src/agents/cli-output.test.ts src/agents/cli-backends.test.ts
  • Edge cases checked: existing Claude stream-json tests still pass; task_complete outranks final_answer; final_answer outranks commentary; commentary item.text is ignored.
  • What you did not verify: I did not run a live WhatsApp/Telegram fallback end-to-end against a real CLI provider from this branch.

Real behavior proof

Behavior or issue addressed: OpenAI/Codex-style CLI JSONL output is now parsed so terminal reply records win over commentary or intermediate message text in both the full-buffer parser and streaming parser.

Real environment tested: Windows/PowerShell checkout at PR head 8b90301ef3; installed OpenAI Codex CLI codex-cli 0.130.0-alpha.5; Node v24.13.1; OpenClaw parser entry points imported directly from src/agents/cli-output.ts.

Exact steps or command run after this patch:

codex exec --json --ephemeral --ignore-rules --sandbox read-only --skip-git-repo-check "Reply exactly: FINAL_PROOF_IGNORE_RULES_OK" 1> .artifacts/real-proof-59920/codex-ignore-rules.jsonl 2> .artifacts/real-proof-59920/codex-ignore-rules.stderr.txt

node --import tsx --input-type=module
imports parseCliJsonl() and createCliJsonlStreamingParser() from ./src/agents/cli-output.ts
feeds the saved Codex CLI JSONL transcript through both parser paths

node --import tsx --input-type=module
imports the same parser entry points and replays redacted Codex/OpenAI terminal-field JSONL containing commentary, final_answer, and task_complete records

Evidence after fix:

$ codex exec --json --ephemeral --ignore-rules --sandbox read-only --skip-git-repo-check "Reply exactly: FINAL_PROOF_IGNORE_RULES_OK"
{"type":"thread.started","thread_id":"019e228b-0ab8-7ea1-9675-ea6149bafe95"}
{"type":"turn.started"}
{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"FINAL_PROOF_IGNORE_RULES_OK"}}
{"type":"turn.completed","usage":{"input_tokens":22858,"cached_input_tokens":2432,"output_tokens":129,"reasoning_output_tokens":116}}

real_codex_full_buffer_output=
{"text":"FINAL_PROOF_IGNORE_RULES_OK","sessionId":"019e228b-0ab8-7ea1-9675-ea6149bafe95","usage":{"input":22858,"output":129,"cacheRead":2432}}
real_codex_streaming_output=
{"text":"FINAL_PROOF_IGNORE_RULES_OK","sessionId":"019e228b-0ab8-7ea1-9675-ea6149bafe95","usage":{"input":22858,"output":129,"cacheRead":2432}}
terminal_field_jsonl=
{"type":"response_start","thread_id":"thread-real-proof-redacted"}
{"item":{"type":"message","phase":"commentary","text":"COMMENTARY_SHOULD_NOT_WIN"}}
{"type":"response_item","payload":{"type":"message","role":"assistant","phase":"final_answer","content":[{"type":"output_text","text":"FINAL_ANSWER_SHOULD_BE_OVERRIDDEN"}]}}
{"type":"event_msg","payload":{"type":"task_complete","last_agent_message":"TASK_COMPLETE_WINS"}}
full_buffer_output=
{"text":"TASK_COMPLETE_WINS","sessionId":"thread-real-proof-redacted"}
streaming_output=
{"text":"TASK_COMPLETE_WINS","sessionId":"thread-real-proof-redacted"}

Observed result after fix: The installed Codex CLI produced JSONL on this machine and both OpenClaw parser paths extracted the final agent message from that transcript. For the bot-cited terminal-field shape, both parser paths returned TASK_COMPLETE_WINS; COMMENTARY_SHOULD_NOT_WIN and the lower-priority FINAL_ANSWER_SHOULD_BE_OVERRIDDEN were not surfaced.

What was not tested: A live WhatsApp/Telegram delivery route was not exercised for this parser-only PR.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

  • Backward compatible? Yes
  • Config/env changes? No
  • Migration needed? No
  • If yes, exact upgrade steps: N/A

Risks and Mitigations

  • Risk: a non-Claude JSONL backend could intentionally rely on commentary-phase item.text as the only final output.
    • Mitigation: the parser now only skips explicit commentary phase text and prefers explicit terminal fields; generic non-commentary item.text fallback remains intact.

@greptile-apps

greptile-apps Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a parser gap in parseCliJsonl() where OpenAI/Codex-style JSONL streams containing task_complete.last_agent_message or phase:"final_answer" events were not being preferred over generic item.text fallback collection, causing commentary text to potentially surface as the final reply.

Changes:

  • Adds pickCliJsonlTaskCompleteText and pickCliJsonlFinalAnswerText helpers to extract terminal reply fields from nested JSONL event shapes (payload, item, or top-level).
  • Adds pickCliJsonlPhase helper to resolve phase from the most local record, falling back to the enclosing event.
  • Updates the parseCliJsonl loop to collect taskCompleteText and finalAnswerText across all lines, then prefer them (in that order) over the existing texts[] fallback at the end.
  • Guards against commentary-phase item.text being added to the generic text accumulator.
  • Two new tests lock in the priority semantics; existing Claude path tests are unchanged.

No critical issues found. The priority logic (taskCompleteText ?? finalAnswerText ?? texts fallback) is order-independent (both terminal fields are collected across the full stream, fixed priority applied at the end), which matches the stated intent. The Claude early-return path is unaffected.

Confidence Score: 4/5

  • Safe to merge; changes are backward-compatible and Claude path is unaffected.
  • The logic is correct and well-scoped. Terminal-field priority is order-independent (all lines are scanned, fixed priority applied after the loop), the commentary suppression guard only affects explicit commentary-phase item text, and the Claude early-return path is untouched. The two new tests cover both priority tiers. Marginal deductions: no test for the edge case where task_complete.last_agent_message is empty/whitespace (which silently falls through to final_answer rather than asserting terminal presence), and no test exercising multiple task_complete events to confirm last-wins semantics, but these are minor coverage gaps rather than bugs.
  • No files require special attention.

Reviews (1): Last reviewed commit: "fix cli jsonl final-answer selection" | Re-trigger Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 66ec7ae94d

ℹ️ 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".

Comment thread src/agents/cli-output.ts Resolved
@vincentkoc

Copy link
Copy Markdown
Member

ProjectClownfish pushed a narrow repair to this branch so the original contributor path can stay canonical.

Source PR: #59920
Validation: pnpm exec vitest run --config test/vitest/vitest.unit-fast.config.ts src/agents/cli-output.test.ts; pnpm check:changed
Contributor credit is preserved in the branch history and PR context.

@clawsweeper

clawsweeper Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 5:02 PM ET / 21:02 UTC.

Summary
The PR changes full-buffer and streaming CLI JSONL parsing plus regression tests to prefer task_complete.last_agent_message and phase:"final_answer" over commentary or generic item text.

PR surface: Source +87, Tests +387. Total +474 across 2 files.

Reproducibility: yes. from source: current main and v2026.6.11 lack task_complete / final_answer precedence and the linked issue's JSONL shape maps directly to the phase-blind parser path.

Review metrics: 1 noteworthy metric.

  • Parser Reply Paths: 2 changed. Both full-buffer and streaming JSONL parser outputs can feed user-visible CLI fallback replies, so precedence consistency matters before merge.

Stored data model
Persistent data-model change detected: serialized state: src/agents/cli-output.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #59918
Summary: This PR is the candidate fix for the narrow CLI JSONL terminal-reply parser bug; broader commentary leakage and stranded-final-message reports remain separate work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Resolve the conflict against current main while preserving stream-json safeguards.
  • Rerun focused parser coverage after refresh.
  • Confirm maintainers accept terminal-field precedence for custom JSONL fallback backends.

Risk before merge

  • [P1] The current PR head conflicts with main; refresh must preserve main's newer stream-json output limits, parse-error handling, and missing-result behavior.
  • [P2] The PR intentionally changes structured JSONL fallback semantics, so a custom non-Claude JSONL backend relying on commentary-phase item.text or generic accumulated text could see a different delivered reply.

Maintainer options:

  1. Refresh Against Current Main (recommended)
    Resolve the merge conflict while preserving current main's stream-json output limits, parse-error handling, and missing-result behavior.
  2. Accept Terminal-Field Precedence
    Maintainers can intentionally accept that explicit task_complete and final_answer records outrank generic accumulated fallback text for JSONL reply selection.
  3. Pause For Broader Delivery Policy
    If commentary suppression should be decided with the broader channel-leakage policy, keep this PR paused until that boundary is settled.

Next step before merge

  • [P2] The remaining action is maintainer conflict resolution and acceptance of the reply-selection compatibility contract, not a narrow automated code repair.

Security
Cleared: The diff changes parser logic and tests only, with no dependency, workflow, permission, secret, network, or code-execution surface added.

Review details

Best possible solution:

Refresh the branch against current main, preserve the newer stream-json safeguards, and land the parser precedence fix if maintainers accept terminal-field reply precedence for CLI JSONL fallback delivery.

Do we have a high-confidence way to reproduce the issue?

Yes from source: current main and v2026.6.11 lack task_complete / final_answer precedence and the linked issue's JSONL shape maps directly to the phase-blind parser path.

Is this the best way to solve the issue?

Yes for the narrow parser bug, with a compatibility caveat; the shared CLI JSONL parser is the right boundary, while dispatch, channel delivery, or Codex output-artifact changes would not fix existing JSONL stream precedence as directly.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 010b61746379.

Label changes

Label justifications:

  • P2: This is a normal-priority parser bug fix with user-visible reply-selection impact but a narrow agents surface.
  • merge-risk: 🚨 compatibility: The diff changes structured JSONL fallback semantics, including terminal-field precedence and commentary-only output handling.
  • merge-risk: 🚨 message-delivery: The changed parser selects text that can be delivered by CLI fallback paths, so precedence changes can suppress or replace channel-visible replies.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes after-fix Codex CLI JSONL live output plus parser replay through both full-buffer and streaming parser paths showing terminal text selected.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes after-fix Codex CLI JSONL live output plus parser replay through both full-buffer and streaming parser paths showing terminal text selected.
Evidence reviewed

PR surface:

Source +87, Tests +387. Total +474 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 92 5 +87
Tests 1 387 0 +387
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 479 5 +474

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs src/agents/cli-output.test.ts.
  • [P1] pnpm check:changed -- src/agents/cli-output.ts src/agents/cli-output.test.ts.

What I checked:

  • Root policy read: Root AGENTS.md requires full-policy review, broad code-path inspection, and direct sibling Codex source inspection before a Codex-related verdict. (AGENTS.md:1, 010b61746379)
  • Scoped policy read: The touched src/agents subtree has a scoped AGENTS.md for agent test and runtime import guardrails. (src/agents/AGENTS.md:1, 010b61746379)
  • Current main streaming gap: Current main streaming getOutput() returns parse errors, existing output, Gemini/Claude stream-json assistant text, then generic accumulated text; it has no task_complete or final_answer precedence. (src/agents/cli-output.ts:1105, 010b61746379)
  • Current main full-buffer gap: Current main full-buffer parsing still adds parsed.item.text for message-like items without checking phase and returns that generic text after Gemini/stream-json handling. (src/agents/cli-output.ts:1200, 010b61746379)
  • Runtime callers: The CLI runner uses createCliJsonlStreamingParser() during stdout streaming and falls back to parseCliOutput() for final parsed stdout, so both parser paths affect delivered fallback replies. (src/agents/cli-runner/execute.ts:1062, 010b61746379)
  • PR streaming implementation: The PR head collects taskCompleteText and finalAnswerText, skips commentary-phase generic item text, and returns terminal text before generic output in streaming getOutput(). (src/agents/cli-output.ts:840, acd481225a72)

Likely related people:

  • steipete: Peter Steinberger split the CLI runner pipeline and introduced the Claude JSONL streaming parser surface that this PR now extends. (role: feature introducer and adjacent owner; confidence: high; commits: 48ae97633303, 4e099689c075, 4d3c72a521cd; files: src/agents/cli-output.ts, src/agents/cli-runner/execute.ts, src/agents/cli-output.test.ts)
  • vincentkoc: Vincent Koc has recent merged CLI parser work and also pushed a narrow repair commit to this PR branch while preserving the contributor path. (role: recent area contributor and branch repair author; confidence: high; commits: c75f82448fad, e7e8db2e8bfa, e085fa1a3ffd; files: src/agents/cli-output.ts, src/agents/cli-output.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc vincentkoc added clawsweeper Tracked by ClawSweeper automation and removed clownfish:merge-ready labels Apr 28, 2026
@mySebbe
mySebbe force-pushed the codex/fix-cli-jsonl-final-answer branch from d4e5b0e to 122619f Compare May 13, 2026 00:47
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 13, 2026
@mySebbe
mySebbe force-pushed the codex/fix-cli-jsonl-final-answer branch from 122619f to 8b90301 Compare May 13, 2026 00:49
@mySebbe

mySebbe commented May 13, 2026

Copy link
Copy Markdown
Author

Updated branch, rebased on origin/main (bf16038b5c).

Addressed the ClawSweeper P2 streaming-path finding: createCliJsonlStreamingParser().getOutput() now applies the same terminal priority as the full-buffer parser:

  1. task_complete.last_agent_message
  2. final_answer
  3. non-commentary message-like item.text
  4. structured-empty output returns { text: "" } instead of falling back to raw JSONL/commentary

Added streaming regression coverage for commentary + generic item + final_answer + task_complete; the test fails on the old streaming parser by returning commentary/generic item text and passes after the fix.

Validation after rebase:

corepack pnpm exec vitest run --config test/vitest/vitest.unit-fast.config.ts src/agents/cli-output.test.ts
Test Files  1 passed (1)
Tests       20 passed (20)

corepack pnpm exec oxfmt --check --threads=1 CHANGELOG.md src/agents/cli-output.ts src/agents/cli-output.test.ts
All matched files use the correct format.

corepack pnpm check:changed
$ node scripts/check-changed.mjs

git diff --check
# clean

Redacted real Codex CLI JSONL smoke proof from the installed CLI on this machine:

codex exec --json --ephemeral --sandbox read-only --skip-git-repo-check "Reply exactly: FINAL_PROOF_OK"
{"type":"thread.started","thread_id":"<redacted>"}
{"type":"turn.started"}
{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"FINAL_PROOF_OK"}}
{"type":"turn.completed","usage":{"input_tokens":"<redacted>","cached_input_tokens":"<redacted>","output_tokens":"<redacted>","reasoning_output_tokens":"<redacted>"}}

The live CLI smoke confirms the JSONL runner path is exercised locally; the new regression covers the terminal-field priority shape from the review (commentary/generic item before final_answer/task_complete).

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 13, 2026
@mySebbe

mySebbe commented May 13, 2026

Copy link
Copy Markdown
Author

Updated the PR body with the required ## Real behavior proof section and redacted live Codex/OpenAI CLI JSONL evidence. The Real behavior proof check is now passing on the current head.

@clawsweeper re-review

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 13, 2026
@mySebbe
mySebbe force-pushed the codex/fix-cli-jsonl-final-answer branch from 8b90301 to 5a48b4f Compare May 14, 2026 01:25
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@vincentkoc
vincentkoc force-pushed the codex/fix-cli-jsonl-final-answer branch from 69374ce to 4dec47a Compare June 17, 2026 16:37
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jun 17, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Clownfish 🐠 reef update

Thanks for the contribution here. Clownfish nudged this branch back into the current, so the original PR can stay the review lane.

Source PR: #59920
Validation: pnpm test src/agents/cli-output.test.ts; pnpm check:changed
Attribution stays exactly where it should: with the original branch and PR history.

fish notes: model gpt-5.5, reasoning medium; reviewed against acd4812.

@vincentkoc
vincentkoc force-pushed the codex/fix-cli-jsonl-final-answer branch from 4dec47a to acd4812 Compare June 18, 2026 08:06
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 18, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@clawsweeper

clawsweeper Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: [codex] prefer terminal reply fields in CLI JSONL parser This is item 1/1 in the current shard. Shard 0/4.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper Tracked by ClawSweeper automation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M stale Marked as stale due to inactivity status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CLI JSONL fallback parser drops final-answer semantics and can surface commentary instead

2 participants