Skip to content

Safely summarize session-tail tool output - #994

Merged
GraciousGazelles merged 3 commits into
mainfrom
fix/subagent-session-tail-safe-output
Oct 25, 2026
Merged

GraciousGazelles merged 3 commits into
mainfrom
fix/subagent-session-tail-safe-output

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Prevent session-tail crashes on MCP list output by summarizing output shape instead of payload text.
  • Keep regression coverage for string, list, object, scalar, and empty outputs.

Validation

  • sedna-heavy-tests run 40149835961 passed for exact candidate SHA 3df64b7, selecting codex.agent-workflow-sanity.

The existing lane runs the focused session-tail unittest. No full Codex build is required for this helper-only change.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the output summarization logic in inspect_subagent_tail.py to prevent exposing sensitive payload content, instead summarizing outputs by their type and structure (e.g., number of lines, items, or fields). The corresponding unit tests are updated to verify that sensitive tokens are not leaked. Feedback suggests limiting the number of items processed in list outputs to prevent performance issues or excessively long summaries, along with adding a test case to verify this truncation behavior.

@GraciousGazelles
GraciousGazelles marked this pull request as ready for review October 25, 2026 01:43
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-25T01:45:42.625268Z 71cedc8 Draft marked ready
ℹ️ 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.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit 5fd462f Oct 25, 2026
149 of 152 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/subagent-session-tail-safe-output branch October 25, 2026 01:56
GraciousGazelles added a commit that referenced this pull request Oct 25, 2026
…-output

Safely summarize session-tail tool output
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