bingocode 1.1.187 → 1.1.189

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.187",
3
+ "version": "1.1.189",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "claude": "bin/claude-win.cjs",
@@ -9,15 +9,18 @@ export async function call(
9
9
  args?: string,
10
10
  ): Promise<React.ReactNode | null> {
11
11
  const arg = args?.trim().toLowerCase()
12
+ const enable = arg !== 'off'
12
13
 
13
- if (arg === 'off') {
14
- updateSettingsForSource('userSettings', { execMode: false })
14
+ // Persist to disk
15
+ updateSettingsForSource('userSettings', { execMode: enable })
16
+
17
+ // Update AppState to trigger React re-render (like /fast does)
18
+ if (enable) {
19
+ context.setAppState(prev => ({ ...prev, execMode: true }))
20
+ onDone('✓ Exec Mode enabled')
21
+ } else {
22
+ context.setAppState(prev => ({ ...prev, execMode: false }))
15
23
  onDone('✗ Exec Mode disabled')
16
- return null
17
24
  }
18
-
19
- // Default: always enable (not a toggle)
20
- updateSettingsForSource('userSettings', { execMode: true })
21
- onDone('✓ Exec Mode enabled')
22
25
  return null
23
26
  }