claude-code-remote-pilot 0.4.6 → 0.4.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.
Files changed (2) hide show
  1. package/lib/ui.html +3 -2
  2. package/package.json +1 -1
package/lib/ui.html CHANGED
@@ -539,7 +539,8 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
539
539
  } catch {
540
540
  } finally {
541
541
  setSending(false);
542
- inputRef.current?.focus();
542
+ // Defer focus until after React re-enables the input (disabled={sending})
543
+ setTimeout(() => inputRef.current?.focus(), 0);
543
544
  }
544
545
  };
545
546
 
@@ -551,7 +552,7 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
551
552
  body: JSON.stringify({ key }),
552
553
  });
553
554
  } catch {}
554
- inputRef.current?.focus();
555
+ setTimeout(() => inputRef.current?.focus(), 0);
555
556
  };
556
557
 
557
558
  const handleKeyDown = (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-remote-pilot",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Interactive Claude Code supervisor — spawn and monitor multiple Claude sessions from a single terminal.",
5
5
  "type": "commonjs",
6
6
  "bin": {