Harden session cwd resume precedence#202
Draft
nestharus wants to merge 12 commits into
Draft
Conversation
Interactive --resume built its target from the model-effective provider, injecting -m/--variant launch args; opencode rejects --variant and exits 1. Use the runtime provider resume argv (session already carries model/variant). Verified against real ses_1012 (enters TUI vs exit-1). Token-clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K7cQsdbQh7wM1dRRjyjYn5
…merge When multiple segments of one chain collapse to one post-alias tuple, select survivor/start/tail independently: the open segment wins survivor selection, earliest started_at and latest tail are preserved, and merged_ended_at stays open if any merged row is open. forward.sql gains a fail-closed guard against plans that would close an open merge group. Synthetic-fixture tests only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K7cQsdbQh7wM1dRRjyjYn5
main had accumulated rustfmt drift across ~24 files; every pipeline worktree regenerated these on 'cargo fmt', polluting WU diffs and causing repeated 'rogue edits' confusion. Pure formatting, no behavior change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K7cQsdbQh7wM1dRRjyjYn5
Live pty_interactive owners that NACK immediate notify-time PTY delivery (e.g. unsafe_mid_line) left a durable pending mailbox row with no wake claim, and sweep filtered busy sessions out before any retry -> the owner showed a pending count but was never notified (affects opencode + claude interactive sessions). Add a sweep pre-pass that retries pending rows via the PTY control socket for live pty_interactive owners, marking delivered only after a PTY ACK; no headless wake claim for busy owners; repeated NACK stays safely pending. Sidecar-only pending lookup; no schema change; no provider-specific tokens. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K7cQsdbQh7wM1dRRjyjYn5
Recovered from the trunk WIP stash; B2 reviewed as KEEP (general in-core cwd resolution, token-clean, applies on main). Pipeline will harden + test this. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K7cQsdbQh7wM1dRRjyjYn5
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
Verification
Known Existing Reds