bingocode 1.1.200-beta.2 → 1.1.200-beta.21

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/src/types/logs.ts CHANGED
@@ -48,6 +48,7 @@ export type LogOption = {
48
48
  prUrl?: string // Full URL to the linked PR
49
49
  prRepository?: string // Repository in "owner/repo" format
50
50
  mode?: 'coordinator' | 'normal' // Session mode for coordinator/normal detection
51
+ brainMode?: boolean
51
52
  worktreeSession?: PersistedWorktreeSession | null // Worktree state at session end (null = exited, undefined = never entered)
52
53
  contentReplacements?: ContentReplacementRecord[] // Replacement decisions for resume reconstruction
53
54
  }
@@ -64,6 +64,7 @@ import {
64
64
  } from 'src/types/textInputTypes.js'
65
65
  import { randomUUID, type UUID } from 'crypto'
66
66
  import { getInitialSettings, getSettings_DEPRECATED } from './settings/settings.js'
67
+ import { getCurrentSessionBrainMode } from './sessionStorage.js'
67
68
  import { getSnippetForTwoFileDiff } from 'src/tools/FileEditTool/utils.js'
68
69
  import type {
69
70
  ContentBlockParam,
@@ -1594,14 +1595,14 @@ function getCriticalSystemReminderAttachment(
1594
1595
  }
1595
1596
 
1596
1597
  function getBrainModeReminderAttachment(): Attachment[] {
1597
- if (!getInitialSettings().brainMode) {
1598
+ if (!getInitialSettings().brainMode && !getCurrentSessionBrainMode()) {
1598
1599
  return []
1599
1600
  }
1600
1601
  return [
1601
1602
  {
1602
1603
  type: 'system_reminder' as const,
1603
1604
  content:
1604
- '/brain active — Only use Agent and AskUserQuestion. Do NOT use Bash/Read/Grep/Glob/Write/Edit directly. Delegate everything.',
1605
+ '/brain active — You are the high-dimensional thinker. Delegate everything through Agent.',
1605
1606
  },
1606
1607
  ]
1607
1608
  }
@@ -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
@@ -546,6 +547,7 @@ export async function processResumedConversation(
546
547
  ...(restoredAttribution && { attribution: restoredAttribution }),
547
548
  ...(standaloneAgentContext && { standaloneAgentContext }),
548
549
  agentDefinitions: refreshedAgentDefs,
550
+ brainMode: result.brainMode ?? false,
549
551
  },
550
552
  }
551
553
  }