Skip to content

fix(claude): last-good CLI parse + probe session reuse (0.45 port)#216

Merged
Finesssee merged 1 commit into
mainfrom
port/045-claude-resilience
Jul 21, 2026
Merged

fix(claude): last-good CLI parse + probe session reuse (0.45 port)#216
Finesssee merged 1 commit into
mainfrom
port/045-claude-resilience

Conversation

@Finesssee

@Finesssee Finesssee commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Port stack PR B (upstream 0.45 Claude resilience).

Last-good CLI usage (upstream steipete#2247)

Extend existing Claude last-good cache preservation so CLI parse failures, rate limits, and timeouts keep the previous good tray snapshot instead of flashing empty/error. Hard auth loss (credentials missing / not installed) still clears stale data. Transient unauthorized still only preserves once.

Probe session reuse (upstream steipete#2263)

Claude /usage PTY probes now:

  • Persist .codexbar-session-id under the probe working directory
  • Pass --session-id + --allowed-tools "" so refreshes do not create a new empty Claude account session every time
  • Clear leftover *.jsonl in the probe dir before launch (create-only session-id behavior)

Read-only inspect of steipete/CodexBar; no upstream edits.

Test plan

  • cargo test --manifest-path rust/Cargo.toml --lib probe_session
  • cargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml claude_
  • Parse-failure keeps last-good every time; hard credentials missing does not

No packaging / version bump.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

@Finesssee
Finesssee merged commit a845dc2 into main Jul 21, 2026
@Finesssee
Finesssee deleted the port/045-claude-resilience branch July 21, 2026 01:53
@github-actions

Copy link
Copy Markdown

This repository allows each user to open at most 4 pull requests per 7 days.

Closing this automatically.

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