Repository navigation
Preserve latest events in long Session traces - #1115
Merged
Merged
Conversation
Merged
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.
Summary
Preserve the latest tool call in long Session traces when trailing results fill the encoded tail.
Closes #1084.
Evidence
cargo test --test show_logs show_keeps_the_last_tool_call_after_large_session_trace_results -- --exact --nocapturefailed: raw Session log returnedBash: cargo test; Session trace returnednull.After: the exact regression passes for JSON and text output.
cargo test --test show_logs --test convert_logs: 27 passed, 2 ignored fixture entry points.cargo check --bin thirdshift,cargo fmt --check, andgit diff --checkpassed.015bdbd: fullcargo testpassed (2,365 passed, 56 ignored); clippy, formatting, site and Console browser tests, and the macOS gate passed.scripts/affected-tests mainselected the full Rust suite. The local run was stopped after the same head's full CI suite passed, reusing CI perdocs/testing.md; it had no failures before interruption.Test seams:
thirdshift show <Command> --jsonand text output over raw Session logs and Session traces;thirdshift logs --convertwith a kept-Session receipt and round-trip reader comparisons.Post-release verification remains: rerun
thirdshift logs --convertonthirdshiftandstephensto verify the 178 actual kept Sessions.Review coverage
Reviewed against
main(pinned at99417ee): Standards' one P3 fixture-duplication finding was addressed with a shared result-tail fixture; Spec reported no code findings. Both reviewers inspected all four changed files, including the follow-up change. Unread changed files: none. Generated exclusions: none.Unaddressed findings
Standards
None.
Spec
None. The post-release host reruns above remain external acceptance evidence.
Security
None. Guided review of the trace-tail change against the pinned merge base found no introduced finding to address.
Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Blast Radius: logs
Session-trace readers read a larger encoded suffix when necessary to cover the decoded tail budget.
Built with codex · gpt-6.1-sol · xhigh