Skip to content

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

@CasualDeveloper

Description

@CasualDeveloper

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+)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions