@averyyy/pi-coding-agent 0.80.6-piclient.10 → 0.80.6-piclient.11

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.
@@ -195,6 +195,7 @@ export class AgentSession {
195
195
  _extensionShutdownHandler;
196
196
  _extensionErrorListener;
197
197
  _extensionErrorUnsubscriber;
198
+ _autoSessionNameEnabled;
198
199
  _autoSessionNameAttempted = false;
199
200
  // Model registry for API key resolution
200
201
  _modelRegistry;
@@ -222,6 +223,7 @@ export class AgentSession {
222
223
  this._excludedToolNames = config.excludedToolNames ? new Set(config.excludedToolNames) : undefined;
223
224
  this._baseToolsOverride = config.baseToolsOverride;
224
225
  this._sessionStartEvent = config.sessionStartEvent ?? { type: "session_start", reason: "startup" };
226
+ this._autoSessionNameEnabled = config.autoSessionName ?? true;
225
227
  if (isPiServerMode()) {
226
228
  this._detachPiServerTerminalAssistantFailure();
227
229
  }
@@ -1001,7 +1003,7 @@ export class AgentSession {
1001
1003
  return transcript ? truncateForSessionNameInput(transcript) : undefined;
1002
1004
  }
1003
1005
  _shouldGenerateSessionName() {
1004
- if (this._autoSessionNameAttempted || this._sessionHasInfoEntry())
1006
+ if (!this._autoSessionNameEnabled || this._autoSessionNameAttempted || this._sessionHasInfoEntry())
1005
1007
  return false;
1006
1008
  const userMessages = this.agent.state.messages.filter((message) => message.role === "user");
1007
1009
  if (userMessages.length !== 1)