Skip to content

fix: address code audit findings#27

Merged
MartinP7r merged 2 commits into
mainfrom
fix/audit-improvements
Feb 6, 2026
Merged

fix: address code audit findings#27
MartinP7r merged 2 commits into
mainfrom
fix/audit-improvements

Conversation

@MartinP7r

Copy link
Copy Markdown
Owner

Summary

Addresses findings from a comprehensive code audit:

  • Remove unused image dependency from Cargo.toml (~500KB savings)
  • Cache ANSI regex with LazyLock to avoid recompilation per search line
  • Fix N+1 git calls in Split layout (2 calls -> 1, ~100-200ms improvement)
  • Remove dead FIXME code in patch staging logic
  • Add status_message field for error display in TUI
  • Show commit errors in UI bottom bar instead of stderr

Test plan

  • cargo build passes with no warnings
  • cargo clippy passes with no warnings
  • cargo test - all 27 tests pass
  • Manual test: interactive mode staging/unstaging in split layout
  • Manual test: diff search functionality

- Remove unused image dependency from Cargo.toml
- Cache ANSI regex with LazyLock to avoid recompilation per call
- Fix N+1 git calls in Split layout (2 calls -> 1)
- Remove dead FIXME code in patch staging logic
- Add status_message field for error display in TUI
- Show commit errors in UI instead of stderr
@MartinP7r MartinP7r marked this pull request as ready for review February 6, 2026 07:22
@MartinP7r MartinP7r merged commit 1897e36 into main Feb 6, 2026
2 checks passed
@MartinP7r MartinP7r deleted the fix/audit-improvements branch February 6, 2026 07:22
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