Fix "mode" parameter in system prompt

This commit is contained in:
Alex Gleason committed 2025-12-30 12:19:10 -06:00
1 parent e0241a3250
commit 88def1264d
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) {
}
// Purple indicator: no remote configured, but has commits - lowest priority
const needsRemote = !hasRemote && totalCommits >= 2;
const needsRemote = !hasRemote && totalCommits > 1;
if (needsRemote) {
return <IndicatorDot color="primary" />;
}
+4 -3
View File
@@ -297,13 +297,14 @@ export class SessionManager {
baseURL: provider.baseURL,
};
// Get imageModel from settings
const cwd = `${config.fsPathProjects}/${projectId}`;
const commits = await this.git.log({ dir: cwd });
const settings = this.getSettings();
const systemPrompt = await makeSystemPrompt({
cwd: `${config.fsPathProjects}/${projectId}`,
cwd,
fs: this.fs,
mode: "agent",
mode: commits.length > 1 ? "agent" : "init",
tools: Object.values(session.tools),
config,
defaultConfig,