bingocode 1.1.134 → 1.1.136

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.
@@ -4,7 +4,8 @@
4
4
  "Read(//c/Users/qi.lin/.claude/**)",
5
5
  "Bash(dir \"F:\\\\Leanchy\\\\VirtuosAgent\\\\BingoCode\\\\src\\\\server\\\\proxy\")",
6
6
  "Bash(ls src/**/)",
7
- "Bash(cat config/*.json)"
7
+ "Bash(cat config/*.json)",
8
+ "Bash(git:*)"
8
9
  ]
9
10
  }
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bingocode",
3
- "version": "1.1.134",
3
+ "version": "1.1.136",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "claude": "bin/claude-win.cjs",
@@ -297,6 +297,8 @@ export const CliMenuManager: React.FC = () => {
297
297
  if (cfg.language && (cfg.language === 'en' || cfg.language === 'zh' || cfg.language === 'ja')) {
298
298
  setLang(cfg.language as Lang);
299
299
  }
300
+ if (typeof cfg.uiAnimEnabled === 'boolean') setAnimEnabled(cfg.uiAnimEnabled);
301
+ if (typeof cfg.uiTipsEnabled === 'boolean') setTipsEnabled(cfg.uiTipsEnabled);
300
302
  } catch (e) {
301
303
  // Silently fail if config has issues
302
304
  }
@@ -600,12 +602,20 @@ export const CliMenuManager: React.FC = () => {
600
602
 
601
603
  // Top animation toggle (O)
602
604
  if (input === 'o' || input === 'O') {
603
- setAnimEnabled(v => !v);
605
+ setAnimEnabled(v => {
606
+ const next = !v;
607
+ try { const cfg = getGlobalConfig(); cfg.uiAnimEnabled = next; saveGlobalConfig(cfg); } catch {}
608
+ return next;
609
+ });
604
610
  return;
605
611
  }
606
612
  // Top Tips toggle (T)
607
613
  if (input === 't' || input === 'T') {
608
- setTipsEnabled(v => !v);
614
+ setTipsEnabled(v => {
615
+ const next = !v;
616
+ try { const cfg = getGlobalConfig(); cfg.uiTipsEnabled = next; saveGlobalConfig(cfg); } catch {}
617
+ return next;
618
+ });
609
619
  return;
610
620
  }
611
621
 
@@ -245,9 +245,13 @@ function closeAllToolBlocks(state: StreamState): void {
245
245
  }
246
246
 
247
247
  function closeAllOpenBlocks(state: StreamState): void {
248
- // Close current text/thinking block
249
- closeCurrentBlock(state)
250
- // Close all tool blocks
248
+ if (state.currentBlockType !== 'tool_use') {
249
+ // text/thinking block — close via state machine
250
+ closeCurrentBlock(state)
251
+ }
252
+ // Close all tool blocks via toolBlocks map
253
+ // (avoids double-stop: if we called closeCurrentBlock above for a tool_use,
254
+ // closeAllToolBlocks would re-stop the same index)
251
255
  closeAllToolBlocks(state)
252
256
  }
253
257
 
@@ -440,6 +444,7 @@ function handleToolCalls(delta: DeltaEx, state: StreamState): void {
440
444
  block.started = true
441
445
  block.anthropicIndex = state.nextContentIndex++
442
446
  state.currentBlockType = 'tool_use'
447
+ state.currentBlockIndex = block.anthropicIndex
443
448
  state.blockStartSent = true
444
449
  state.blockStopSent = false
445
450
 
@@ -243,6 +243,8 @@ export type GlobalConfig = {
243
243
  queuedCommandUpHintCount?: number // Counter for how many times the user has seen the queued command up hint
244
244
  diffTool?: DiffTool // Which tool to use for displaying diffs (terminal or vscode)
245
245
  language: 'en' | 'zh' | 'ja' // User's preferred language for CLI menus
246
+ uiAnimEnabled: boolean // Whether top logo animation is enabled in CLI menu
247
+ uiTipsEnabled: boolean // Whether tips display is enabled in CLI menu
246
248
 
247
249
  // Terminal setup state tracking
248
250
  iterm2SetupInProgress?: boolean
@@ -621,6 +623,8 @@ function createDefaultGlobalConfig(): GlobalConfig {
621
623
  respectGitignore: true,
622
624
  copyFullResponse: false,
623
625
  language: 'en',
626
+ uiAnimEnabled: true,
627
+ uiTipsEnabled: true,
624
628
  }
625
629
  }
626
630
 
@@ -666,6 +670,8 @@ export const GLOBAL_CONFIG_KEYS = [
666
670
  'remoteControlAtStartup',
667
671
  'remoteDialogSeen',
668
672
  'language',
673
+ 'uiAnimEnabled',
674
+ 'uiTipsEnabled',
669
675
  ] as const
670
676
 
671
677
  export type GlobalConfigKey = (typeof GLOBAL_CONFIG_KEYS)[number]