feat: auto-detect OpenCode CLI on onboarding screen

Polls every 2.5s and transitions automatically once the CLI is reachable
Advanced settings and troubleshooting moved into collapsible accordions
New i18n keys added for status indicator and section titles across 6 locales
This commit is contained in:
Bohdan Triapitsyn
2026-05-05 00:41:30 +03:00
parent 581f7c34dc
commit 7fc22bc69b
7 changed files with 298 additions and 240 deletions
+9 -3
View File
@@ -1951,12 +1951,18 @@ export const dict = {
'onboarding.localSetup.windows.stepInstallWslSuffix': 'in PowerShell.',
'onboarding.localSetup.windows.stepRunInstallInWsl': 'Run the install command below inside your WSL terminal.',
'onboarding.localSetup.windows.stepSetBinaryPath': 'If OpenChamber does not detect OpenCode automatically, set the binary path below.',
'onboarding.localSetup.docs.windows': 'View Windows + WSL documentation',
'onboarding.localSetup.docs.default': 'View documentation',
'onboarding.localSetup.actions.checking': 'Checking...',
'onboarding.localSetup.intro': 'OpenCode is the heart of OpenChamber — install it to get started.',
'onboarding.localSetup.docs.windows': 'OpenCode Windows + WSL docs',
'onboarding.localSetup.docs.default': 'OpenCode docs',
'onboarding.localSetup.actions.checking': 'Checking…',
'onboarding.localSetup.actions.checkAndContinue': "I've completed installation, check and continue",
'onboarding.localSetup.actions.checkNow': 'Check now',
'onboarding.localSetup.helper.checkAndContinue': 'Click to check if OpenCode CLI is available. If successful, you\'ll automatically enter the main screen.',
'onboarding.localSetup.status.watching': 'Waiting for OpenCode',
'onboarding.localSetup.status.autoContinue': "We'll continue automatically once it's detected.",
'onboarding.localSetup.field.alreadyInstalled': 'Already installed? Set the OpenCode CLI path:',
'onboarding.localSetup.advanced.title': 'Set a custom binary path',
'onboarding.localSetup.troubleshoot.title': 'Having trouble?',
'onboarding.localSetup.actions.browse': 'Browse',
'onboarding.localSetup.actions.apply': 'Apply',
'onboarding.localSetup.helper.saveAndReload': 'Saves to OpenChamber settings and reloads OpenCode configuration.',