The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
fix: allow native fx resume with --cwd when session has no recorded directory
Cursor Agentfce8bf93041d
diff --git a/cli/beacon/internal/handoff/fx_test.go b/cli/beacon/internal/handoff/fx_test.goindex 866885d2..b35f97a6 100644--- a/cli/beacon/internal/handoff/fx_test.go+++ b/cli/beacon/internal/handoff/fx_test.go@@ -154,6 +154,19 @@ func TestPlanResumeReopensAnFxSessionInItsWorkspace(t *testing.T) {}}+func TestPlanResumeReopensAnFxSessionWithNoRecordedDirectory(t *testing.T) {+ session := resumableSession(t, HarnessFx, fxSessionA)+ cwdDir := session.Directory+ session.Directory = ""+ plan, err := PlanResume(session, PlanOptions{Dir: cwdDir, LookPath: installed("fx")})+ if err != nil {+ t.Fatalf("PlanResume: %v", err)+ }+ if plan.Mode != ModeNative || plan.Executable != "/bin/fx" || plan.Dir != cwdDir {+ t.Fatalf("plan = %+v, want native resume in %s", plan, cwdDir)+ }+}+func TestPlanResumeRefusesToStartANewFxSession(t *testing.T) {brief := filepath.Join(t.TempDir(), "brief.md")fxSession := resumableSession(t, HarnessFx, fxSessionA)diff --git a/cli/beacon/internal/handoff/resume.go b/cli/beacon/internal/handoff/resume.goindex 85ca7728..f6b1084a 100644--- a/cli/beacon/internal/handoff/resume.go+++ b/cli/beacon/internal/handoff/resume.go@@ -139,7 +139,7 @@ func nativeBlocker(session Session, target string, opts PlanOptions) string {if _, ok := command.Resume(session); !ok {return ReasonNotResumable}- if command.ResumesInSessionDir && opts.Dir != "" && !sameDirectory(opts.Dir, session.Directory) {+ if command.ResumesInSessionDir && opts.Dir != "" && session.Directory != "" && !sameDirectory(opts.Dir, session.Directory) {return ReasonOtherDirectory}if session.SourcePath == "" {