[BUG] fix(session): remove duplicate and typo'd path imports (#8412) #5697

Closed
opened 2026-02-16 17:55:47 -05:00 by yindo · 0 comments
Owner

Originally created by @CasualDeveloper on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

In packages/opencode/src/session/index.ts, there are two path imports introduced in #8281:

// Line 2 - typo (unused)
import pat from "path"

// Line 24 - actual working import
import path from "path"

The code uses path.join() on line 236, so only the second import is functional. The first is dead code with a typo.

Fix:

  • Fix typo pat → path on line 2
  • Remove duplicate import path from "path" on line 24

Introduced in: 0a3c72d67 (v1.1.15+)

Originally created by @CasualDeveloper on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. In `packages/opencode/src/session/index.ts`, there are two `path` imports introduced in #8281: ```typescript // Line 2 - typo (unused) import pat from "path" // Line 24 - actual working import import path from "path" ``` The code uses `path.join()` on line 236, so only the second import is functional. The first is dead code with a typo. **Fix:** - Fix typo pat → path on line 2 - Remove duplicate import path from "path" on line 24 **Introduced in:** `0a3c72d67` (v1.1.15+)
yindo closed this issue 2026-02-16 17:55:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5697