fix(coding-agent): shorten invalid session error

Follow-up to #6002
This commit is contained in:
Mario Zechner
2026-06-25 15:20:08 +02:00
parent 774288587f
commit 0d145e895c
3 changed files with 4 additions and 6 deletions
@@ -800,7 +800,7 @@ export class SessionManager {
if (this.fileEntries.length === 0) {
const explicitPath = this.sessionFile;
if (statSync(explicitPath).size > 0) {
throw new Error(`Session file is not a valid pi session and was not modified: ${explicitPath}`);
throw new Error(`Session file is not a valid pi session: ${explicitPath}`);
}
this.newSession();
this.sessionFile = explicitPath;