Skip to content

Commit d1f27fb

Browse files
committed
fix(lint): remove ineffectual cwd assignment in continue command
1 parent 2246fdd commit d1f27fb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmd/odek/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,8 +2248,6 @@ func continueCmd(args []string) error {
22482248
fmt.Fprintf(os.Stderr, "odek: continuing session %s (turn %d → %d)\n",
22492249
sess.ID, sess.Turns, sess.Turns+1)
22502250

2251-
cwd, _ := os.Getwd()
2252-
22532251
// Resolve config (no CLI flags for continue — uses session's model)
22542252
resolved := config.LoadConfig(config.CLIFlags{Model: sess.Model})
22552253

@@ -2370,7 +2368,7 @@ func continueCmd(args []string) error {
23702368

23712369
// Propagate session context to Extended Memory so extracted atoms are
23722370
// tagged with the session they came from.
2373-
cwd, _ = os.Getwd()
2371+
cwd, _ := os.Getwd()
23742372
if mm := agent.Memory(); mm != nil {
23752373
mm.SetSessionContext(sess.ID, cwd)
23762374
}

0 commit comments

Comments
 (0)