Commit 41bcc51
fix(polecat): don't pre-build command for agent override
When --agent is specified, StartSession() pre-built the command via
BuildPolecatStartupCommandWithAgentOverride with an EMPTY prompt.
This set opts.Command, causing session_manager.Start() to skip its
own BuildStartupCommandFromConfig (which includes the beacon prompt).
Result: agent launched without work instructions (no -i flag, no
prompt), sitting idle at the input prompt.
Fix: remove the pre-built command path. Let session_manager.Start()
build the command with both the beacon prompt and agent override
(opts.Agent), which was already being passed through correctly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 00f59c9 commit 41bcc51
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
368 | 366 | | |
369 | 367 | | |
370 | 368 | | |
| |||
0 commit comments