bingocode 1.1.200-beta.5 → 1.1.200-beta.7
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.
- package/package.json +1 -1
- package/src/components/PromptInput/PromptInput.tsx +1 -1
- package/src/constants/prompts.ts +1 -1
- package/src/server/services/providerService.ts +1 -0
- package/src/utils/conversationRecovery.ts +1 -0
- package/src/utils/sessionRestore.ts +1 -0
- package/src/utils/sessionStorage.ts +21 -11
package/package.json
CHANGED
|
@@ -2328,7 +2328,7 @@ function buildBorderText(showFastIcon: boolean, showFastIconHint: boolean, fastM
|
|
|
2328
2328
|
segments.push(showFastIconHint ? `${getFastIconString(true, fastModeCooldown)} ${chalk.dim('/fast')}` : getFastIconString(true, fastModeCooldown))
|
|
2329
2329
|
}
|
|
2330
2330
|
if (isBrainMode) {
|
|
2331
|
-
segments.push(chalk.yellow('
|
|
2331
|
+
segments.push(chalk.yellow('BRAIN'))
|
|
2332
2332
|
}
|
|
2333
2333
|
return { content: ` ${segments.join(' ')} `, position: 'top', align: 'end', offset: 0 }
|
|
2334
2334
|
}
|
package/src/constants/prompts.ts
CHANGED
|
@@ -927,7 +927,7 @@ The user context may include a \`terminalFocus\` field indicating whether the us
|
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
function getBrainPolicySection(): string | null {
|
|
930
|
-
const { getCurrentSessionBrainMode } = require('
|
|
930
|
+
const { getCurrentSessionBrainMode } = require('../utils/sessionStorage.js')
|
|
931
931
|
if (!getInitialSettings().brainMode && !getCurrentSessionBrainMode()) return null
|
|
932
932
|
return `# Brain Mode (/brain)
|
|
933
933
|
|
|
@@ -645,6 +645,7 @@ export class ProviderService {
|
|
|
645
645
|
const raw = await fs.readFile(settingsPath, "utf-8")
|
|
646
646
|
const settings = JSON.parse(raw)
|
|
647
647
|
settings.claudeCode = {
|
|
648
|
+
disableLoginPrompt: false,
|
|
648
649
|
environmentVariables: [
|
|
649
650
|
{ name: "ANTHROPIC_BASE_URL", value: "https://api.anthropic.com" },
|
|
650
651
|
],
|
|
@@ -2892,7 +2892,17 @@ export function saveMode(mode: 'coordinator' | 'normal'): void {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
|
|
2894
2894
|
export function saveBrainMode(enabled: boolean): void {
|
|
2895
|
-
getProject()
|
|
2895
|
+
const project = getProject()
|
|
2896
|
+
project.currentSessionBrainMode = enabled
|
|
2897
|
+
// Write eagerly when session file already exists, so /brain toggle
|
|
2898
|
+
// persists even if the session is exited before the first message.
|
|
2899
|
+
if (project.sessionFile !== null) {
|
|
2900
|
+
appendEntryToFile(project.sessionFile, {
|
|
2901
|
+
type: 'brain-mode',
|
|
2902
|
+
brainMode: enabled,
|
|
2903
|
+
sessionId: getSessionId(),
|
|
2904
|
+
})
|
|
2905
|
+
}
|
|
2896
2906
|
}
|
|
2897
2907
|
|
|
2898
2908
|
export function getCurrentSessionBrainMode(): boolean | undefined {
|
|
@@ -3621,16 +3631,16 @@ export async function loadTranscriptFile(
|
|
|
3621
3631
|
} else if (entry.type === 'agent-setting' && entry.sessionId) {
|
|
3622
3632
|
agentSettings.set(entry.sessionId, entry.agentSetting)
|
|
3623
3633
|
} else if (entry.type === 'mode' && entry.sessionId) {
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
+
modes.set(entry.sessionId, entry.mode)
|
|
3635
|
+
} else if (entry.type === 'brain-mode' && entry.sessionId) {
|
|
3636
|
+
brainModes.set(entry.sessionId, entry.brainMode)
|
|
3637
|
+
} else if (entry.type === 'worktree-state' && entry.sessionId) {
|
|
3638
|
+
worktreeStates.set(entry.sessionId, entry.worktreeSession)
|
|
3639
|
+
} else if (entry.type === 'pr-link' && entry.sessionId) {
|
|
3640
|
+
prNumbers.set(entry.sessionId, entry.prNumber)
|
|
3641
|
+
prUrls.set(entry.sessionId, entry.prUrl)
|
|
3642
|
+
prRepositories.set(entry.sessionId, entry.prRepository)
|
|
3643
|
+
}
|
|
3634
3644
|
}
|
|
3635
3645
|
}
|
|
3636
3646
|
|