Skip to content

refactor(zeph-core): remove anyhow, replace with typed thiserror errors#1750

Merged
bug-ops merged 4 commits intomainfrom
refactor-zeph-core-complete-any
Mar 14, 2026
Merged

refactor(zeph-core): remove anyhow, replace with typed thiserror errors#1750
bug-ops merged 4 commits intomainfrom
refactor-zeph-core-complete-any

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 14, 2026

Closes #1742.

Summary

  • SubAgentError: remove Other(#[from] anyhow::Error); add Llm(String), Channel(String), TaskPanic(String) variants
  • run_agent_loop return type changed from anyhow::Result<String> to Result<String, SubAgentError>
  • SubAgentHandle::join_handle field and all four spawn sites updated to JoinHandle<Result<String, SubAgentError>>
  • ConfigWatcherError: new pub enum with NoParentDir, NoFilename, Notify(#[from] notify::Error); ConfigWatcher::start return type updated accordingly
  • anyhow removed from zeph-core [dependencies] in Cargo.toml

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace --features full -- -D warnings passes (0 warnings)
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins passes (5427 passed, 12 skipped)
  • grep -r 'anyhow' crates/zeph-core/src/ returns empty

bug-ops added 3 commits March 14, 2026 15:06
Closes #1742.

- SubAgentError: remove Other(#[from] anyhow::Error); add Llm(String),
  Channel(String), TaskPanic(String) variants
- run_agent_loop return type: anyhow::Result<String> -> Result<String, SubAgentError>
- SubAgentHandle::join_handle and all spawn sites updated accordingly
- ConfigWatcherError: new pub enum with NoParentDir, NoFilename,
  Notify(#[from] notify::Error) variants; ConfigWatcher::start return type updated
- Remove anyhow from zeph-core Cargo.toml [dependencies]
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate dependencies Dependency updates refactor Code refactoring without functional changes size/M Medium PR (51-200 lines) labels Mar 14, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 14, 2026 14:23
@bug-ops bug-ops merged commit ec452af into main Mar 14, 2026
15 checks passed
@bug-ops bug-ops deleted the refactor-zeph-core-complete-any branch March 14, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate dependencies Dependency updates documentation Improvements or additions to documentation refactor Code refactoring without functional changes rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(zeph-core): complete anyhow removal from subagent/ and config_watcher.rs

1 participant