Repository navigation
Conversation
These renderers print checkpoint metadata and session state outside the tokens reports covered by tokens_sanitize_test.go: the attribution why line, session info, restored-session display and session ID validation. Encode the contract that escape sequences, OSC payloads and bidi controls never reach the terminal, and reject C1 control characters and bidi runes in ValidateSessionID at write time — the same advisory class as GHSA-ccf9-h2wr-2rj3. Signed-off-by: stavinfernandes <stavinfernandes2098@gmail.com>
The experts command renders agent-provenance data in two render modes (text renderExpertsWithStyles, interactive expertsTUIModel.View) and neither sanitized it. The provenance fields — agent labels, session IDs, branches, skills, tool mix, MCP server names, matched files — aggregate checkpoint metadata, which GHSA-ccf9-h2wr-2rj3 establishes as attacker-craftable via push access to the checkpoints ref: the same vulnerability class as the tokens renderer fix (entireio#3221), in a command that advisory did not cover. Every provenance field now passes through sanitizeExpertsForTerminal at the render boundary — the text renderer sanitizes its own input and the TUI model sanitizes in its constructor, following the merged pattern where each renderer covers its callers rather than relying on them. --json keeps raw values by contract; the JSON encoder escapes control characters itself. Signed-off-by: stavinfernandes <stavinfernandes2098@gmail.com>
Contributor
Author
|
Withdrawing this PR for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wrong thing everything needed is emailed over