Skip to content

fix(agent): add shutdown signal to response cache cleanup loop and annotate TUI forwarder handle#4581

Merged
bug-ops merged 2 commits into
mainfrom
4572-response-cache-shutdown
May 28, 2026
Merged

fix(agent): add shutdown signal to response cache cleanup loop and annotate TUI forwarder handle#4581
bug-ops merged 2 commits into
mainfrom
4572-response-cache-shutdown

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

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

Summary

Test plan

  • cargo +nightly fmt --check — clean
  • RUSTFLAGS="-D warnings" cargo check --workspace --all-targets --features desktop,ide,server,chat,pdf,scheduler --locked — clean
  • cargo clippy -p zeph --features full -- -D warnings — clean
  • cargo build --features full — succeeds
  • Existing unit tests in apply_response_cache_disabled_returns_agent_unchanged and apply_response_cache_enabled_attaches_cache updated and compile correctly
  • Note: pre-existing compile failures in runner.rs test block (AnyProvider::Mock not found) exist on main before these changes and are unrelated to this PR

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation size/S Small PR (11-50 lines) labels May 28, 2026
bug-ops added 2 commits May 29, 2026 00:19
…notate early TUI forwarder

Closes #4572: apply_response_cache now accepts a CancellationToken parameter;
the hourly cleanup loop exits cleanly via tokio::select! when the token is
cancelled. The call site in runner.rs passes mem_cancel.child_token(), reusing
the existing session-scoped token already bridged from shutdown_rx.

Closes #4571: document that _early_status_forwarder is an intentional drop at
block end (self-terminating when the channel closes) via EXEMPT comment,
replacing the bare let _ that triggered clippy::let_underscore_future.
@bug-ops bug-ops force-pushed the 4572-response-cache-shutdown branch from 1e71f3c to d5d1e2e Compare May 28, 2026 22:24
@bug-ops bug-ops enabled auto-merge (squash) May 28, 2026 22:24
@bug-ops bug-ops merged commit 8eaecb2 into main May 28, 2026
32 checks passed
@bug-ops bug-ops deleted the 4572-response-cache-shutdown branch May 28, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation size/S Small PR (11-50 lines)

Projects

None yet

1 participant