Skip to content

Commit b811d62

Browse files
G-Fourteenclaude
andcommitted
Fix auto-install flow completely
- Set viewMode='setup' in runAutoInstall (was missing, broke toggle) - Fix button text to match toggleView ('[ BACK TO MAIN ]') - After boot completes, switch back to main view if in setup mode - This fixes: auto-install would complete but UI stayed on terminal 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 193acde commit b811d62

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

web/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,8 @@ <h1>C.O.R.A</h1>
27972797
const setupTerminal = document.getElementById('setupTerminal');
27982798
mainContainer.style.display = 'none';
27992799
setupTerminal.style.display = 'flex';
2800-
document.getElementById('toggleBtn').textContent = '[ MAIN VIEW ]';
2800+
viewMode = 'setup'; // Track view state correctly
2801+
document.getElementById('toggleBtn').textContent = '[ BACK TO MAIN ]';
28012802

28022803
setupLog('', '#ffffff');
28032804
setupLog('============================================================', '#ff00ff');
@@ -4914,6 +4915,13 @@ <h1>C.O.R.A</h1>
49144915
localStorage.setItem('cora_boot_date', new Date().toISOString());
49154916
log('First-time setup saved - next boot will be faster!', 'info');
49164917

4918+
// If we're in setup terminal view (from auto-install), switch back to main
4919+
if (viewMode === 'setup') {
4920+
setupLog('[BOOT COMPLETE] Switching to main interface...', '#00ff00');
4921+
await sleep(1000); // Brief pause so user sees the message
4922+
backToMain();
4923+
}
4924+
49174925
// Show chat interface
49184926
document.getElementById('chatSection').classList.add('visible');
49194927
document.getElementById('chatInput').focus();

0 commit comments

Comments
 (0)