@dyyz1993/pi-coding-agent 0.74.47 → 0.74.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -773,6 +773,15 @@ export class AgentSession {
773
773
  this._baseSystemPrompt = this._rebuildSystemPrompt(this.getActiveToolNames(), agent.systemPrompt);
774
774
  this.agent.state.systemPrompt = this._baseSystemPrompt;
775
775
  }
776
+ // Persist agent change to session
777
+ this.sessionManager.appendAgentChange(agent.name, {
778
+ description: agent.description,
779
+ tools: agent.tools,
780
+ permissionMode: agent.permissionMode,
781
+ tier: agent.tier,
782
+ thinkingLevel: agent.thinkingLevel,
783
+ model: agent.model,
784
+ });
776
785
  }
777
786
  getCurrentAgent() {
778
787
  return this._currentAgentName;