Skip to content

fix(core,agent-context): track JoinHandle, remove lint allow, add #[non_exhaustive]#4620

Merged
bug-ops merged 1 commit into
mainfrom
4612-joinhandle-untracked
May 29, 2026
Merged

fix(core,agent-context): track JoinHandle, remove lint allow, add #[non_exhaustive]#4620
bug-ops merged 1 commit into
mainfrom
4612-joinhandle-untracked

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 29, 2026

Summary

Three code quality fixes grouped in one PR:

Test plan

Closes #4612, #4567, #4569

@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate bug Something isn't working size/M Medium PR (51-200 lines) labels May 29, 2026
…on_exhaustive]

- apply_response_cache returns Option<JoinHandle<()>>; runner.rs aborts
  the cleanup task on shutdown to prevent it outliving the agent lifecycle
  (closes #4612)
- remove #![allow(clippy::unused_async)] from zeph-agent-context crate root;
  ContextService::reset_conversation is now a plain fn (closes #4567)
- add #[non_exhaustive] to SkipReason, StageOutcome, VerdictStatus,
  TriggerPolicy, QualityConfigError, ToolRiskCategory, ProbeVerdict in
  zeph-core; consistent with project-wide convention (closes #4569)
@bug-ops bug-ops enabled auto-merge (squash) May 29, 2026 13:30
@bug-ops bug-ops force-pushed the 4612-joinhandle-untracked branch from 430ec63 to 9768a47 Compare May 29, 2026 13:30
@bug-ops bug-ops merged commit f0b3af0 into main May 29, 2026
32 checks passed
@bug-ops bug-ops deleted the 4612-joinhandle-untracked branch May 29, 2026 13:38
bug-ops added a commit that referenced this pull request May 29, 2026
…ration,sanitizer,tools,tui): add #[non_exhaustive] to extensible pub enums

Completes workspace-wide #[non_exhaustive] coverage started in PRs #4616
and #4620. Adds the attribute to all eligible extensible pub enums across
the remaining crates. Enums with exhaustive match expressions in the same
crate (error enums, protocol/wire types, dispatcher enums) are excluded.

Closes #4623.
bug-ops added a commit that referenced this pull request May 29, 2026
…ration,sanitizer,tools,tui): add #[non_exhaustive] to extensible pub enums

Completes workspace-wide #[non_exhaustive] coverage started in PRs #4616
and #4620. Adds the attribute to all eligible extensible pub enums across
the remaining crates. Enums with exhaustive match expressions in the same
crate (error enums, protocol/wire types, dispatcher enums) are excluded.

Closes #4623.
bug-ops added a commit that referenced this pull request May 29, 2026
…kspace-wide (#4658)

* refactor(acp,agent-context,bench,config,context,index,llm,mcp,orchestration,sanitizer,tools,tui): add #[non_exhaustive] to extensible pub enums

Completes workspace-wide #[non_exhaustive] coverage started in PRs #4616
and #4620. Adds the attribute to all eligible extensible pub enums across
the remaining crates. Enums with exhaustive match expressions in the same
crate (error enums, protocol/wire types, dispatcher enums) are excluded.

Closes #4623.

* fix(mcp,tui): remove duplicate #[non_exhaustive] attributes and add wildcard match arm

Remove duplicate #[non_exhaustive] attributes in zeph-mcp and zeph-tui
where the previous commit on this branch had already added them. Add a
wildcard arm to the ToolEvent match in tui_bridge.rs to satisfy the
exhaustiveness requirement introduced by marking ToolEvent as
#[non_exhaustive].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate documentation Improvements or additions to documentation rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

1 participant