Skip to content

Commit f0ee073

Browse files
committed
fix: connect uses project-bound profile like status
Diagnose against the cwd GitHub origin binding so a dead internal-testing loopback is reported instead of the store-active hosted profile.
1 parent df41674 commit f0ee073

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Copyright (c) 2026 Devrecated.
44

55
## Unreleased
66

7+
## v1.0.2
8+
9+
### Fixed
10+
- `connect` resolves the same project-bound profile as `status` (cwd GitHub origin), so diagnose matches the active org for this repo.
11+
712
## v1.0.1
813

914
### Added

‎internal/connect/connect.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/devrecated/autodevelop-cli/internal/host"
1616
"github.com/devrecated/autodevelop-cli/internal/mcpattach"
1717
"github.com/devrecated/autodevelop-cli/internal/mcpwrite"
18+
"github.com/devrecated/autodevelop-cli/internal/repo"
1819
)
1920

2021
const (
@@ -104,7 +105,8 @@ func Build(opts Options) Diagnose {
104105
}
105106
prefix := cliPrefix()
106107
summaries := credentials.ListSummaries(path, env)
107-
active, _ := credentials.ResolveEffectiveProfile(env, opts.Profile, path, "")
108+
project := repo.GitHubProject(cwd)
109+
active, _ := credentials.ResolveEffectiveProfile(env, opts.Profile, path, project)
108110
if opts.Profile != "" {
109111
active = opts.Profile
110112
}

0 commit comments

Comments
 (0)