Skip to content

Give tool and activity records one writer in the live log #186

Done

Description

@muspi-merol-review

The activity worker and the tool formatter in scripts/run-review.sh share stdout. In #179, an 8 KiB comment arrived while a tool was printing a long result. Its group header began on a fresh line, but tool output appeared inside the quoted comment body and the displayed JSON failed to parse.

Give one process ownership of stdout for both streams. The activity worker can publish complete formatted records to a file, and the log pipeline can emit them between complete tool records. Activity must also remain visible while Codex is quiet. Each resume or retry starts a fresh log() pipeline, and the EXIT trap waits for the worker after the last pipeline finishes, so the reader needs to retain its position across attempts and drain the final record exactly once.

Verify with both production formatters writing large records concurrently. After removing display colours, the activity JSON should parse back to the input and the tool output should be intact. Also check delivery during an idle period, across a retry, and immediately before exit.

Activity

  1. coderabbitai commented on Nov 27, 2026

    @coderabbitai
    🔗 Related PRs

    #12 - Show tool output and injected activity in the live log [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions