fix(coding-agent): initialize system prompt options lazily

This commit is contained in:
Mario Zechner
2026-04-20 23:22:21 +02:00
parent 12d7161884
commit 14ad636fb5
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
### Fixed
- Fixed `AgentSession` system-prompt option initialization to avoid constructing an invalid empty `BuildSystemPromptOptions`, so `npm run check` passes after `cwd` became mandatory.
- Fixed shell-path resolution to stop consulting ambient `process.cwd()` state during bash execution, so session/project-specific `shellPath` settings now follow the active coding-agent session cwd instead of the launcher cwd ([#3452](https://github.com/badlogic/pi-mono/issues/3452))
- Fixed `ctx.ui.setWorkingIndicator()` custom frames to render verbatim instead of forcing the theme accent color, so extensions now own working-indicator coloring when they customize it ([#3467](https://github.com/badlogic/pi-mono/issues/3467))
- Fixed `pi update` reinstalling npm packages that are already at the latest published version by checking the installed package version before running `npm install <pkg>@latest` ([#3000](https://github.com/badlogic/pi-mono/issues/3000))

View File

@@ -301,7 +301,7 @@ export class AgentSession {
// Base system prompt (without extension appends) - used to apply fresh appends each turn
private _baseSystemPrompt = "";
private _baseSystemPromptOptions: BuildSystemPromptOptions = {};
private _baseSystemPromptOptions!: BuildSystemPromptOptions;
constructor(config: AgentSessionConfig) {
this.agent = config.agent;