Skip to content

Redact large tool results off the runtime thread #316

Closed

Description

@lydakis

Left from Codex's review of #306 (#306 (comment)).

Registry::fetched redacts a fetched page (up to ~8 MiB of Markdown) on the daemon's shared current-thread runtime before it applies the artifact cap. Codex measured about 22 ms for 4 MiB of prose with the field and private-key redactors, plus one more scan per registered credential. shell_outcome already redacts shell streams (up to 1 MiB each) the same way, so this is a general pattern and not specific to web_fetch.

Possible fix: run redaction for results over some size (say 256 KiB) inside spawn_blocking, still before truncation, for web_fetch and for shell streams alike.

Not urgent: 22 ms is a brief stall and only happens on very large pages.

Activity

  1. added a commit that references this issue on Nov 1, 2026
    364c9d9
  2. added 6 commits that reference this issue on Nov 1, 2026
    6bba79d
    f047d85
    f321952
    a449fd2
    37ebb4d
    2fc6491
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