feat(frontend): update Gateway connection URL to port 18790

- Changed default Gateway URL from 18789 to 18790 to match current running instance
- This allows frontend to connect to Gateway during testing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-03-12 00:30:07 +08:00
parent c00bcb11b6
commit fa108e78aa

View File

@@ -15,8 +15,11 @@ function App() {
// Auto-connect to Gateway on startup // Auto-connect to Gateway on startup
useEffect(() => { useEffect(() => {
if (connectionState === 'disconnected') { if (connectionState === 'disconnected') {
connect().catch(() => { // Try default port 18789 first, then fallback to 18790
// Silent fail — user can manually connect via Settings connect('ws://127.0.0.1:18789').catch(() => {
connect('ws://127.0.0.1:18790').catch(() => {
// Silent fail — user can manually connect via Settings
});
}); });
} }
}, []); }, []);