Repository navigation
fix: v0.2.0-v0.2.1 stability & robustness fixes (roadmap #1-#3, #4, #7-#9, #11-#13, #15, #16) - #4
Merged
Merged
Conversation
…esh, panic recovery - Wire tray Lock menu to vault lock logic (was disabled placeholder) - Add 30s timeout to SSH approval requests (prevents indefinite agent hang) - Implement token refresh before sync_vault in Reunlock, periodic sync, and manual sync paths - Replace 3x expect(lock poisoned) with graceful mutex recovery
…rable timeouts - Log dropped approval responses instead of silently discarding - Log DB migration failures instead of silently ignoring - Wrap access_log.record in spawn_blocking to prevent tokio thread starvation - Add Keys length assertion to prevent slice panics on malformed data - Consolidate sequential mutex locks in auth.rs ensure_unlocked - Add warning logs for all event emission failures (8 locations) - Add debug logs for decryption failures in key listing - Extract approval timeout and login retry count to Config - Reduce state lock hold time in ssh_agent.rs by snapshotting state - Graceful fallback for region::lock failure instead of unwrap panic - Log Unix socket cleanup failure - Extract SYNC_INTERVAL_TICKS constant replacing magic number
…done - Replace hardcoded 64-bit PEB offsets with runtime pointer-size detection - #9 SSH op parsing already covers git sign, ls-remote, plain SSH beyond the 3 map entries
- Install std::panic::set_hook that writes crash.log with timestamp and panic message - #11 git config parsing evaluated as acceptable for current use case - #12 crash dump now writes to LOCALAPPDATA/bw-agent/crash.log
…oadmap - Add tmux/docker/vscode/node/python/cargo etc to process black/whitelists - Replace hand-written glob with globset crate for standard ** and [a-z] support - Roadmap: #15 #16 fixed, #11 accepted, #17 already absent
Reamd7
force-pushed
the
fix/v0.2.0-stability
branch
from
April 21, 2026 17:40
31e30dc to
201f664
Compare
Reamd7
added a commit
that referenced
this pull request
Apr 22, 2026
…7-#9, #11-#13, #15, #16) (#4) * fix: v0.2.0 stability fixes - tray lock, approval timeout, token refresh, panic recovery - Wire tray Lock menu to vault lock logic (was disabled placeholder) - Add 30s timeout to SSH approval requests (prevents indefinite agent hang) - Implement token refresh before sync_vault in Reunlock, periodic sync, and manual sync paths - Replace 3x expect(lock poisoned) with graceful mutex recovery * fix: robustness improvements - silent failures, panic guards, configurable timeouts - Log dropped approval responses instead of silently discarding - Log DB migration failures instead of silently ignoring - Wrap access_log.record in spawn_blocking to prevent tokio thread starvation - Add Keys length assertion to prevent slice panics on malformed data - Consolidate sequential mutex locks in auth.rs ensure_unlocked - Add warning logs for all event emission failures (8 locations) - Add debug logs for decryption failures in key listing - Extract approval timeout and login retry count to Config - Reduce state lock hold time in ssh_agent.rs by snapshotting state - Graceful fallback for region::lock failure instead of unwrap panic - Log Unix socket cleanup failure - Extract SYNC_INTERVAL_TICKS constant replacing magic number * docs: update roadmap with v0.2.0 and v0.2.1 completion status * fix: add 32-bit Windows PEB offset support, mark roadmap items #8 #9 done - Replace hardcoded 64-bit PEB offsets with runtime pointer-size detection - #9 SSH op parsing already covers git sign, ls-remote, plain SSH beyond the 3 map entries * fix: add panic handler for crash logging, mark roadmap #11 #12 - Install std::panic::set_hook that writes crash.log with timestamp and panic message - #11 git config parsing evaluated as acceptable for current use case - #12 crash dump now writes to LOCALAPPDATA/bw-agent/crash.log * fix: expand process lists, use globset for pattern matching, update roadmap - Add tmux/docker/vscode/node/python/cargo etc to process black/whitelists - Replace hand-written glob with globset crate for standard ** and [a-z] support - Roadmap: #15 #16 fixed, #11 accepted, #17 already absent * chore: update Cargo.lock for globset dependency * fix: remove String::display() call on Unix-only code path
Reamd7
added a commit
that referenced
this pull request
Apr 22, 2026
…7-#9, #11-#13, #15, #16) (#4) * fix: v0.2.0 stability fixes - tray lock, approval timeout, token refresh, panic recovery - Wire tray Lock menu to vault lock logic (was disabled placeholder) - Add 30s timeout to SSH approval requests (prevents indefinite agent hang) - Implement token refresh before sync_vault in Reunlock, periodic sync, and manual sync paths - Replace 3x expect(lock poisoned) with graceful mutex recovery * fix: robustness improvements - silent failures, panic guards, configurable timeouts - Log dropped approval responses instead of silently discarding - Log DB migration failures instead of silently ignoring - Wrap access_log.record in spawn_blocking to prevent tokio thread starvation - Add Keys length assertion to prevent slice panics on malformed data - Consolidate sequential mutex locks in auth.rs ensure_unlocked - Add warning logs for all event emission failures (8 locations) - Add debug logs for decryption failures in key listing - Extract approval timeout and login retry count to Config - Reduce state lock hold time in ssh_agent.rs by snapshotting state - Graceful fallback for region::lock failure instead of unwrap panic - Log Unix socket cleanup failure - Extract SYNC_INTERVAL_TICKS constant replacing magic number * docs: update roadmap with v0.2.0 and v0.2.1 completion status * fix: add 32-bit Windows PEB offset support, mark roadmap items #8 #9 done - Replace hardcoded 64-bit PEB offsets with runtime pointer-size detection - #9 SSH op parsing already covers git sign, ls-remote, plain SSH beyond the 3 map entries * fix: add panic handler for crash logging, mark roadmap #11 #12 - Install std::panic::set_hook that writes crash.log with timestamp and panic message - #11 git config parsing evaluated as acceptable for current use case - #12 crash dump now writes to LOCALAPPDATA/bw-agent/crash.log * fix: expand process lists, use globset for pattern matching, update roadmap - Add tmux/docker/vscode/node/python/cargo etc to process black/whitelists - Replace hand-written glob with globset crate for standard ** and [a-z] support - Roadmap: #15 #16 fixed, #11 accepted, #17 already absent * chore: update Cargo.lock for globset dependency * fix: remove String::display() call on Unix-only code path
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
v0.2.0-v0.2.1 稳定性与健壮性修复批次,覆盖路线图 P0-P2 共 13 项(#1-#3, #4, #7-#9, #11, #12, #13, #15, #16)。Rebased onto
main(includesa757e52).Changes (8 commits)
8c4398c- v0.2.0 stability fixes (P0 + P1-4)sync_vaultin 3 paths: Reunlock, periodic sync, manual syncexpect("lock poisoned")with graceful mutex recovery + warning logcdd0832- Robustness improvements (13 sub-fixes)access_log.recordwrapped inspawn_blocking- prevent tokio thread starvationauth.rs ensure_unlockedKeyslength assertion - prevent slice panics on malformed datalet _ =toif let Err(e) = warnapproval_timeout_secs+max_login_attemptsto Configssh_agent.rsby snapshotting stateregion::lockfallback + Unix socket cleanup logging18841f7- Roadmap status updatef414294- 32-bit Windows PEB offset + SSH op parsing0024d57- Panic handler + roadmap updatesstd::panic::set_hookwrites crash.log with timestamp + panic message toLOCALAPPDATA/bw-agent/10fae99- Process lists + globset + roadmapglobsetcrate - standard**and[a-z]support2319210- Cargo.lock for globset201f664- CI fixString::display()call on Unix-only code path (compilation fix for#[cfg(unix)]block)Files Changed
crates/bw-agent/src/{access_log,approval,auth,config,lib,process,routing,ssh_agent}.rscrates/bw-agent/Cargo.toml- addedglobsetdependencycrates/bw-core/src/locked.rs- Keys length assertion + region::lock fallbacksrc-tauri/src/{commands,main,tray}.rsCargo.lockdocs/product-roadmap.mdTest Plan
cargo test- all tests passcargo clippy -- -D warnings- zero warningscargo fmt --check- cleanmain(resolves conflict witha757e52)