Skip to content

feat: synthesize auto-enables when corpus dir is configured#764

Closed
garrytan-agents wants to merge 1 commit intogarrytan:masterfrom
garrytan-agents:feat/synthesize-enabled-default
Closed

feat: synthesize auto-enables when corpus dir is configured#764
garrytan-agents wants to merge 1 commit intogarrytan:masterfrom
garrytan-agents:feat/synthesize-enabled-default

Conversation

@garrytan-agents
Copy link
Copy Markdown
Contributor

@garrytan-agents garrytan-agents commented May 9, 2026

What

Setting session_corpus_dir is now sufficient to enable dream synthesis. Previously users had to set both session_corpus_dir AND enabled=true, which was a silent footgun — you configure the corpus dir, expect dreams to work, and nothing happens.

Changes

  • enabled defaults to true when session_corpus_dir is set, false otherwise
  • Explicit enabled=false still wins (for pausing synthesis without removing corpus config)
  • Reordered guard checks: corpus-dir check runs before enabled check
  • Updated dream --help example
  • 5 unit tests covering all enable/disable/corpus-dir combinations

Testing

bun test test/synth-enabled-default.test.ts
# 5 pass, 0 fail

Also tested in production: flipping enabled=true + Opus verdict model produced 18 new synthesis pages from a 92-transcript backfill.


View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Setting session_corpus_dir is now sufficient — enabled defaults to true
when a corpus dir is configured, false otherwise. Explicit enabled=false
still wins for users who want the corpus dir set but synthesis paused.

Before: users had to set BOTH session_corpus_dir AND enabled=true, which
was a silent footgun (configure corpus, expect dreams, nothing happens).

- Reorder guard checks: corpus-dir check before enabled check
- enabled=false is now 'explicitly false' in skip message
- 5 unit tests covering all combinations
- Update dream --help example to show corpus dir (not enabled)
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