@blockrun/franklin 3.7.7 → 3.7.8

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.
Files changed (2) hide show
  1. package/dist/ui/app.js +11 -0
  2. package/package.json +1 -1
package/dist/ui/app.js CHANGED
@@ -241,10 +241,17 @@ function RunCodeApp({ initialModel, workDir, walletAddress, walletBalance, chain
241
241
  setCurrentModel(selected.id);
242
242
  onModelChange(selected.id, 'user');
243
243
  showStatus(`Model → ${selected.label}`, 'success', 3000);
244
+ // Clear any stale draft that was in the input when the picker opened —
245
+ // previously a paste/typed value could leak back into the chat box after
246
+ // the picker closed, which is both confusing and a privacy risk.
247
+ setInput('');
248
+ setHistoryIdx(-1);
244
249
  setMode('input');
245
250
  setReady(true);
246
251
  }
247
252
  else if (key.escape) {
253
+ setInput('');
254
+ setHistoryIdx(-1);
248
255
  setMode('input');
249
256
  setReady(true);
250
257
  }
@@ -316,6 +323,10 @@ function RunCodeApp({ initialModel, workDir, walletAddress, walletBalance, chain
316
323
  else {
317
324
  const idx = PICKER_MODELS_FLAT.findIndex(m => m.id === currentModel);
318
325
  setPickerIdx(idx >= 0 ? idx : 0);
326
+ // Defensive: ensure no draft text survives into the picker —
327
+ // closing handlers clear input too, so both ends are covered.
328
+ setInput('');
329
+ setHistoryIdx(-1);
319
330
  setMode('model-picker');
320
331
  }
321
332
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/franklin",
3
- "version": "3.7.7",
3
+ "version": "3.7.8",
4
4
  "description": "Franklin — The AI agent with a wallet. Spends USDC autonomously to get real work done. Pay per action, no subscriptions.",
5
5
  "type": "module",
6
6
  "exports": {