Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(cli): default to production URLs (api.multica.ai, multica.ai)

yushen1a0d8c282ab5
diff --git a/server/cmd/multica/cmd_agent.go b/server/cmd/multica/cmd_agent.go
index 2daa464834..d5391544fd 100644
--- a/server/cmd/multica/cmd_agent.go
+++ b/server/cmd/multica/cmd_agent.go
@@ -64,12 +64,12 @@ func resolveServerURL(cmd *cobra.Command) string {
profile := resolveProfile(cmd)
cfg, err := cli.LoadCLIConfigForProfile(profile)
if err != nil {
- return "http://localhost:8080"
+ return "https://api.multica.ai"
}
if cfg.ServerURL != "" {
return normalizeAPIBaseURL(cfg.ServerURL)
}
- return "http://localhost:8080"
+ return "https://api.multica.ai"
}
func normalizeAPIBaseURL(raw string) string {
diff --git a/server/cmd/multica/cmd_auth.go b/server/cmd/multica/cmd_auth.go
index e20c9af83a..0c502cdd8b 100644
--- a/server/cmd/multica/cmd_auth.go
+++ b/server/cmd/multica/cmd_auth.go
@@ -72,7 +72,7 @@ func resolveAppURL(cmd *cobra.Command) string {
if err == nil && cfg.AppURL != "" {
return strings.TrimRight(cfg.AppURL, "/")
}
- return "http://localhost:3000"
+ return "https://multica.ai"
}
func openBrowser(url string) error {
diff --git a/server/cmd/multica/cmd_auth_test.go b/server/cmd/multica/cmd_auth_test.go
index de881b4428..492a4c28c3 100644
--- a/server/cmd/multica/cmd_auth_test.go
+++ b/server/cmd/multica/cmd_auth_test.go
@@ -35,13 +35,13 @@ func TestResolveAppURL(t *testing.T) {
}
})
- t.Run("defaults to localhost 3000", func(t *testing.T) {
+ t.Run("defaults to production", func(t *testing.T) {
t.Setenv("MULTICA_APP_URL", "")
t.Setenv("FRONTEND_ORIGIN", "")
t.Setenv("HOME", t.TempDir()) // avoid reading real config
- if got := resolveAppURL(cmd); got != "http://localhost:3000" {
- t.Fatalf("resolveAppURL() = %q, want %q", got, "http://localhost:3000")
+ if got := resolveAppURL(cmd); got != "https://multica.ai" {
+ t.Fatalf("resolveAppURL() = %q, want %q", got, "https://multica.ai")
}
})
}