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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bingocode",
3
- "version": "1.1.200-beta.5",
3
+ "version": "1.1.200-beta.7",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "claude": "bin/claude-win.cjs",
@@ -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('» EXEC'))
2331
+ segments.push(chalk.yellow('BRAIN'))
2332
2332
  }
2333
2333
  return { content: ` ${segments.join(' ')} `, position: 'top', align: 'end', offset: 0 }
2334
2334
  }
@@ -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('./sessionStorage.js')
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
  ],
@@ -583,6 +583,7 @@ export async function loadConversationForResume(
583
583
  customTitle: log?.customTitle,
584
584
  tag: log?.tag,
585
585
  mode: log?.mode,
586
+ brainMode: log?.brainMode,
586
587
  worktreeSession: log?.worktreeSession,
587
588
  prNumber: log?.prNumber,
588
589
  prUrl: log?.prUrl,
@@ -308,6 +308,7 @@ type ResumeLoadResult = {
308
308
  customTitle?: string
309
309
  tag?: string
310
310
  mode?: 'coordinator' | 'normal'
311
+ brainMode?: boolean
311
312
  worktreeSession?: PersistedWorktreeSession | null
312
313
  prNumber?: number
313
314
  prUrl?: string
@@ -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().currentSessionBrainMode = enabled
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
- modes.set(entry.sessionId, entry.mode)
3625
- } else if (entry.type === 'brain-mode' && entry.sessionId) {
3626
- brainModes.set(entry.sessionId, entry.brainMode)
3627
- } else if (entry.type === 'worktree-state' && entry.sessionId) {
3628
- worktreeStates.set(entry.sessionId, entry.worktreeSession)
3629
- } else if (entry.type === 'pr-link' && entry.sessionId) {
3630
- prNumbers.set(entry.sessionId, entry.prNumber)
3631
- prUrls.set(entry.sessionId, entry.prUrl)
3632
- prRepositories.set(entry.sessionId, entry.prRepository)
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