feat: proje temizleme ve bildirim deneyimini iyilestir

This commit is contained in:
2026-03-17 01:09:36 +03:00
parent 6312ebc9e7
commit 2d78b821d0
7 changed files with 148 additions and 15 deletions

View File

@@ -2,7 +2,6 @@ import fs from "fs";
import path from "path";
import stripAnsi from "strip-ansi";
import { buildBootstrapPrompt } from "./bootstrapPrompt.js";
import { buildProjectSelectionPrompt } from "./bootstrapPrompt.js";
import { LogService } from "./logService.js";
import { PtyService } from "./ptyService.js";
import { getClaudeEnv, getPublicRuntimeConfig } from "./config.js";
@@ -125,7 +124,10 @@ export class SessionManager {
this.currentProjectPath = resolved;
this.lastDirectedMember = null;
this.setState({ currentProjectPath: resolved });
this.setState({
currentProjectPath: resolved,
teamActivated: false
});
this.addLog("system", `Current project set to ${resolved ?? "None"}`);
if (wasRunning) {
@@ -133,9 +135,6 @@ export class SessionManager {
if (resolved) {
await this.activateTeam();
} else {
const prompt = buildProjectSelectionPrompt(this.getActiveWorkspaceDir());
await this.sendRawPrompt(prompt, { label: `[project] Switched active project to ${this.getActiveWorkspaceDir()}` });
}
}
}