Compare commits

...

5 Commits

Author SHA1 Message Date
viper151
3ceb260115 Merge branch 'main' into viper151-patch-websockets 2026-01-26 13:36:26 +01:00
viper151
3debc3a249 Reorder return statements for claude commands 2026-01-26 13:34:38 +01:00
viper151
f4c0fe9e04 Simplify WebSocket URL for platform mode 2026-01-26 12:33:50 +01:00
viper151
5512e2e15b Merge pull request #343 from siteboon/viper151-patch-1-1
Set base path for Vite configuration
2026-01-26 11:58:22 +01:00
viper151
1b42dba902 Set base path for Vite configuration 2026-01-26 11:56:05 +01:00
3 changed files with 5 additions and 4 deletions

View File

@@ -31,13 +31,13 @@ function LoginModal({
switch (provider) {
case 'claude':
return isAuthenticated ? 'claude /login --dangerously-skip-permissions' : 'claude setup-token --dangerously-skip-permissions';
return isAuthenticated ? 'claude setup-token --dangerously-skip-permissions' : 'claude /login --dangerously-skip-permissions';
case 'cursor':
return 'cursor-agent login';
case 'codex':
return isPlatform ? 'codex login --device-auth' : 'codex login';
default:
return isAuthenticated ? 'claude /login --dangerously-skip-permissions' : 'claude setup-token --dangerously-skip-permissions';
return isAuthenticated ? 'claude setup-token --dangerously-skip-permissions' : 'claude /login --dangerously-skip-permissions';
}
};

View File

@@ -29,7 +29,7 @@ export function useWebSocket() {
if (isPlatform) {
// Platform mode: Use same domain as the page (goes through proxy)
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
wsUrl = `${protocol}//${window.location.host}/ws`;
wsUrl = `/ws`;
} else {
// OSS mode: Connect to same host:port that served the page
const token = localStorage.getItem('auth-token');

View File

@@ -7,6 +7,7 @@ export default defineConfig(({ command, mode }) => {
return {
base: './',
plugins: [react()],
server: {
port: parseInt(env.VITE_PORT) || 5173,
@@ -45,4 +46,4 @@ export default defineConfig(({ command, mode }) => {
}
}
}
})
})