Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Go Build and Test
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
pull_request:
branches: [ "main" ]

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Upgrade Path Test
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
pull_request:
branches: [ main ]
workflow_dispatch:
Expand Down
6 changes: 6 additions & 0 deletions cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"os/signal"
"runtime"
"strings"
"syscall"
"time"

Expand Down Expand Up @@ -83,6 +84,10 @@ Examples:

serverAddr, _ := cmd.Flags().GetString("server")

if strings.Contains(apiUrl, "agentuity.io") && !strings.Contains(serverAddr, "localhost") {
serverAddr = "localhost:12001"
}

server, err := dev.New(dev.ServerArgs{
Ctx: ctx,
Logger: log,
Expand Down Expand Up @@ -163,6 +168,7 @@ Examples:
if err == bundler.ErrBuildFailed {
return
}
ui.Close(true)
errsystem.New(errsystem.ErrInvalidConfiguration, err, errsystem.WithContextMessage(fmt.Sprintf("Failed to bundle project: %s", err))).ShowErrorAndExit()
}
ok = true
Expand Down
7 changes: 3 additions & 4 deletions internal/bundler/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,10 @@ func checkForBreakingChanges(ctx BundleContext, language string, runtime string)
if c.Check(currentVersion) {
if change.Callback != nil {
var proceed bool
if tui.HasTTY {
if tui.HasTTY && !ctx.DevMode {
tui.ShowBanner(change.Title, change.Message, true)
} else {
tui.Text(change.Title + " - " + change.Message)
return fmt.Errorf("migration required")
return fmt.Errorf("migration required: %s. %s", change.Title, change.Message)
}
proceed = tui.AskForConfirm("Would you like to migrate your project now?", 'y') == 'y'
if proceed {
Expand All @@ -232,7 +231,7 @@ func checkForBreakingChanges(ctx BundleContext, language string, runtime string)
return fmt.Errorf("migration required")
}
} else {
if tui.HasTTY {
if tui.HasTTY && !ctx.DevMode {
tui.ShowBanner(change.Title, change.Message, true)
os.Exit(1)
} else {
Expand Down
2 changes: 2 additions & 0 deletions internal/dev/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ func (d *DevModeUI) Close(abort bool) {
d.once.Do(func() {
d.aborting = abort
d.program.Quit()
<-d.Done()
fmt.Fprint(os.Stdout, "\033c")
})
}

Expand Down
Loading