openrune 0.3.14 → 0.3.15

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": "openrune",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "description": "Rune — File-based AI Agent Harness for Claude Code",
5
5
  "keywords": ["ai", "agent", "claude", "desktop", "electron", "mcp", "claude-code", "harness", "automation"],
6
6
  "repository": {
@@ -7,20 +7,16 @@ export function App() {
7
7
  const chat = useChat()
8
8
  const [showTerminal, setShowTerminal] = useState(true)
9
9
 
10
- // Auto-switch to chat when MCP channel connects OR when history is loaded
10
+ // Show terminal until connected, then switch to chat
11
11
  useEffect(() => {
12
12
  const handler = (data: { port: number; connected: boolean }) => {
13
13
  if (data.connected) setShowTerminal(false)
14
+ else setShowTerminal(true)
14
15
  }
15
16
  window.rune.on('rune:channelStatus', handler)
16
17
  return () => window.rune.off('rune:channelStatus', handler)
17
18
  }, [])
18
19
 
19
- // If there's existing history, show chat immediately
20
- useEffect(() => {
21
- if (chat.messages.length > 0) setShowTerminal(false)
22
- }, [chat.messages.length > 0])
23
-
24
20
  const toggleTerminal = useCallback(() => setShowTerminal(prev => !prev), [])
25
21
 
26
22
  if (!chat.runeInfo) {