mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix "mode" parameter in system prompt
This commit is contained in:
2 files changed
+5
-4
No files matched your search
@@ -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" />;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user