Repository navigation
Complete finding resolution with legacy stdout encodings - #1565
Conversation
Architecture-Review: unchanged; stdout escaping preserves the existing resolution and eligibility sequence. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on e2df91b7a9db720b0f997f9330098590f099c6de, 23.2s: approve (0 critical, 0 important, 0 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
Architecture-Review: unchanged; escaping is scoped to the existing finding output and leaves resolution and eligibility sequencing intact. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by claude on a3deb601b14ac21cc68654269c1ecbfd6e76e312, 21.7s: approve (0 critical, 0 important, 2 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
|
|
||
| def cmd_resolve(args: argparse.Namespace) -> int: | ||
| """List open blocking findings, or reply to one with what changed and resolve its thread.""" | ||
| encoding = getattr(sys.stdout, "encoding", None) or "utf-8" |
There was a problem hiding this comment.
suggestion: Unrelated removal of the cmd_resolve docstring
This diff replaces the docstring "List open blocking findings, or reply to one with what changed and resolve its thread." with the encoding = ... line. The docstring was the only summary of what the two modes of this command do, and removing it isn't needed for the encoding fix. Smallest fix: keep the docstring and put the encoding assignment on the line after it.
| if not args.finding: | ||
| for marker_id, _thread, f in github.open_findings(config.repo, pr.number): | ||
| print(f"{marker_id} {f.severity} {f.path or '-'}:{f.line or '-'} {f.title}") | ||
| print(f"{marker_id} {f.severity} {f.path or '-'}:{f.line or '-'} {f.title}".encode(encoding, "backslashreplace").decode(encoding)) |
There was a problem hiding this comment.
suggestion: The same encode/decode escaping is written out twice
Both resolve prints (lines 1675 and 1678) repeat .encode(encoding, "backslashreplace").decode(encoding) inline, which also makes line 1675 very long. If another resolve message later prints finding text, it would need to copy this again, and a missed copy would bring back the ASCII-stdout crash. The notes also describe a different approach: using the CLI's existing stdout configuration to pick the error handler, which is what the previous commit did. The per-print escaping in this commit is correct and more local, so this is non-blocking. Smallest fix: add a small _display(text) helper (or a local lambda) in cmd_resolve and call it from both prints.
Architecture-Review: unchanged; the merge preserves trusted review publishers and the reviewed display encoding. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by claude on cc60ef913de4160ca24d63c7453694997c57fdf9, 11.2s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| @@ -1827,18 +1827,18 @@ def _delete_tracking_ref(wt: Path, branch: str, expected_head: str) -> None: | |||
|
|
|||
|
|
|||
| def cmd_resolve(args: argparse.Namespace) -> int: | |||
There was a problem hiding this comment.
suggestion: Merge resolution dropped the cmd_resolve docstring that main added
When the conflict was resolved, the branch's encoding = ... line replaced main's docstring """List open blocking findings, or reply to one with what changed and resolve its thread.""" instead of being added after it. Nothing else in the repo contains that docstring, and nothing reads cmd_resolve.__doc__, because argparse help only uses __doc__ in eligibility.py. So nothing breaks, but the merge quietly undoes documentation from #1863 that this task never meant to touch. Smallest fix: put the docstring back as the first statement of cmd_resolve and keep the encoding line below it.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Complete finding resolution with legacy stdout encodings
Context and goal
Closes #1503
Supersedes #1520, whose published head cannot receive a delta review after a base merge.
Acceptance
Base
Base: 2a11772
Notes
Use the CLI's existing stdout configuration to select a display error handler for resolve. This keeps the mutation and dispatch flow as it was. No architecture update is needed because output encoding does not change GitHub or readiness authority.
Validation
Recorded for
33d2d5841f2fuv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review