Commit 3770ece
fix(tray): use configured port for Open Web UI (#362)
Reads the actual listen address from the /api/v1/info endpoint
instead of hardcoding port 8080. This fixes the issue where users
with non-default ports would be directed to the wrong URL.
The webUiUrl from the info response is parsed to extract the base URL
(scheme + host + port), stored in AppState.webUIBaseURL, and used by
both TrayMenu.openWebUI() and AppController.openWebUI(). The SSEClient
also uses the correct base URL now instead of hardcoded 8080.
Fixes #361
Co-authored-by: Claude Code <noreply@anthropic.com>1 parent b9375ed commit 3770ece
4 files changed
Lines changed: 23 additions & 7 deletions
File tree
- native/macos/MCPProxy/MCPProxy
- Core
- Menu
- State
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
439 | 450 | | |
440 | 451 | | |
| 452 | + | |
441 | 453 | | |
442 | 454 | | |
443 | 455 | | |
| |||
447 | 459 | | |
448 | 460 | | |
449 | 461 | | |
450 | | - | |
451 | | - | |
| 462 | + | |
| 463 | + | |
452 | 464 | | |
453 | | - | |
| 465 | + | |
454 | 466 | | |
455 | 467 | | |
456 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| 769 | + | |
769 | 770 | | |
770 | | - | |
771 | | - | |
| 771 | + | |
| 772 | + | |
772 | 773 | | |
773 | 774 | | |
774 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
| 418 | + | |
420 | 419 | | |
421 | 420 | | |
422 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
0 commit comments