Skip to content

fix(acp): gate prompt summary background session on config#476

Merged
CSRessel merged 2 commits into
mainfrom
gate-prompt-summary
May 14, 2026
Merged

fix(acp): gate prompt summary background session on config#476
CSRessel merged 2 commits into
mainfrom
gate-prompt-summary

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

Summary

🤖 Generated with Nori

  • Gate the background ACP session for prompt summarization on prompt_summary_enabled || auto_worktree.is_enabled(), so it only spawns when something actually needs it
  • Add prompt_summary_enabled: bool to AcpBackendConfig and AcpBackend, sourced from FooterSegmentConfig.prompt_summary
  • Since both prompt_summary (off by default in lean footer defaults) and auto_worktree (off by default) are false, the background session no longer spawns by default — eliminating wire protocol noise during debugging

Test Plan

  • cargo test -p nori-acp passes (config tests verify field plumbing)
  • cargo test -p nori-tui passes
  • cargo test -p tui-pty-e2e passes
  • cargo build --bin nori succeeds
  • Enable prompt_summary = true in config.toml and verify summary still appears in footer
  • Verify wire protocol is clean (no second ACP session) with default config

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets

CSRessel and others added 2 commits May 14, 2026 12:47
Skip spawning the background ACP session for prompt summarization
when neither the prompt_summary footer segment is enabled nor
auto_worktree is active. Since both default to off, this eliminates
wire protocol noise during debugging for the common case.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
Remove the prompt_summary_enabled field plumbing through
AcpBackendConfig/AcpBackend/constructors/tests. Instead, load
NoriConfig once at the spawn decision point on first prompt.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
@CSRessel CSRessel merged commit 434faaa into main May 14, 2026
3 checks passed
@CSRessel CSRessel deleted the gate-prompt-summary branch May 14, 2026 18:20
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