bingocode 1.1.200-beta.6 → 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.6",
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
  }
@@ -645,9 +645,9 @@ 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
- { name: "ANTHROPIC_AUTH_TOKEN", value: "" },
651
651
  ],
652
652
  }
653
653
  await fs.writeFile(settingsPath, JSON.stringify(settings, null, 4) + '
@@ -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 {