Files
oh-my-pi/packages/coding-agent/test
ephraimduncan c426f2517a fix(coding-agent): base plan-default freshness on conversation/mode entries
The startup-metadata allowlist was incomplete: an extension that persists a
custom entry during session_start (initHooksAndCustomTools runs just before this
guard) made a brand-new session look non-fresh, so plan.defaultOnStartup never
engaged for those users.

Invert to a blocklist: a session is brand-new unless it has a conversation
`message` or a user `mode_change` (which #reconcileModeFromSession just restored).
SDK startup metadata and extension custom entries are ignored. This satisfies the
fresh, continue-created, resumed-conversation, and toggled-off-mode cases at once.
Added a regression test for the extension custom-entry case.
2026-06-05 12:18:52 +00:00
..
2026-06-04 18:33:36 +02:00
2026-03-14 10:46:26 +01:00
2026-05-16 00:20:00 +02:00
2026-06-04 17:46:00 +02:00
2026-05-02 07:01:57 +02:00
2026-05-30 18:08:51 +02:00
2026-06-02 11:15:22 +00:00
2026-05-30 18:08:51 +02:00
2026-05-30 18:08:51 +02:00
2026-05-30 18:08:51 +02:00
2026-06-02 08:27:04 +02:00
2026-06-04 15:30:58 +00:00