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
1 change: 1 addition & 0 deletions cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Examples:
isDeliberateRestart = true
log.Debug("killing project server")
dev.KillProjectServer(projectServerCmd)
log.Debug("killing project server done")
})
if err != nil {
errsystem.New(errsystem.ErrInvalidConfiguration, err, errsystem.WithContextMessage(fmt.Sprintf("Failed to start watcher: %s", err))).ShowErrorAndExit()
Expand Down
3 changes: 3 additions & 0 deletions internal/dev/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import (
)

func KillProjectServer(projectServerCmd *exec.Cmd) {
if projectServerCmd == nil || projectServerCmd.ProcessState == nil || projectServerCmd.ProcessState.Exited() {
return
}
ch := make(chan struct{}, 1)
go func() {
projectServerCmd.Wait()
Expand Down
2 changes: 1 addition & 1 deletion internal/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func ResolveProjectDir(logger logger.Logger, cmd *cobra.Command, required bool)
if !ProjectExists(abs) && required {
dir = viper.GetString("preferences.project_dir")
if ProjectExists(dir) {
tui.ShowWarning("Using your last used project directory. You should change into the correct directory or use the --dir flag.")
tui.ShowWarning("Using your last used project directory (%s). You should change into the correct directory or use the --dir flag.", dir)
return dir
}
tui.ShowBanner("Agentuity Project Not Found", "No Agentuity project file not found in the directory "+abs+"\n\nMake sure you are in an Agentuity project directory or use the --dir flag to specify a project directory.", false)
Expand Down
Loading