Skip to content

Comments

refactor: replace anyhow with typed errors in library crates#676

Merged
bug-ops merged 1 commit intomainfrom
feat/626-error-handling
Feb 20, 2026
Merged

refactor: replace anyhow with typed errors in library crates#676
bug-ops merged 1 commit intomainfrom
feat/626-error-handling

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 20, 2026

Summary

  • Replace anyhow in zeph-core::config with typed ConfigError enum (Io, Parse, Validation, Vault) via thiserror
  • Replace anyhow in zeph-tui with typed TuiError enum (Io, Channel); simplify handle_event() return to ()
  • Sort [workspace.dependencies] alphabetically in root Cargo.toml
  • Issues 9.4 (LlmProvider) and 9.5 (VectorStore) skipped: LlmProvider already uses RPITIT; VectorStore used as dyn requiring BoxFuture

Test plan

  • 2048/2048 tests pass (cargo nextest run --workspace --lib --bins)
  • No anyhow in zeph-core::config or zeph-tui
  • ConfigError covers all config error paths (Io, Parse, Validation, Vault)
  • TuiError covers all TUI error paths (Io, Channel)
  • Workspace deps sorted alphabetically
  • cargo +nightly fmt --check clean
  • cargo clippy --workspace -- -D warnings clean

Closes #626

@github-actions github-actions bot added documentation Improvements or additions to documentation rust core dependencies refactor size/L labels Feb 20, 2026
@bug-ops bug-ops force-pushed the feat/626-error-handling branch 2 times, most recently from 4c88748 to 93c1068 Compare February 20, 2026 01:01
Replace anyhow in zeph-core::config with ConfigError enum (Io, Parse,
Validation, Vault variants via thiserror). Replace anyhow in zeph-tui
with TuiError enum (Io, Channel); simplify handle_event() return to
unit type since it never errors.

Sort [workspace.dependencies] alphabetically in root Cargo.toml.

Closes #626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

1 participant