You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[regression] opencode 1.2.21 freezes on session start if the current working directory is a symlink #16522
--- a/packages/opencode/src/cli/cmd/tui/thread.ts+++ b/packages/opencode/src/cli/cmd/tui/thread.ts@@ -120,11 +120,14 @@ export const TuiThreadCommand = cmd({
return
}
- // Resolve relative paths against PWD to preserve behavior when using --cwd flag+ // Use PWD as the base for resolving relative --project paths so that+ // symlink-aware shells see the right directory. For the no-project case,+ // use the real OS cwd so that Instance.directory always matches the+ // canonical path that git and other tools report.
const root = Filesystem.resolve(process.env.PWD ?? process.cwd())
const cwd = args.project
? Filesystem.resolve(path.isAbsolute(args.project) ? args.project : path.join(root, args.project))
- : root+ : Filesystem.resolve(process.cwd())
const file = await target()
try {
process.chdir(cwd)
changed the title [-][regressio] opencode 1.2.21 freezes on session start if the current working directory is a symlink[/-][+][regression] opencode 1.2.21 freezes on session start if the current working directory is a symlink[/+]on Mar 7, 2026
Activity
[-][regressio] opencode 1.2.21 freezes on session start if the current working directory is a symlink[/-][+][regression] opencode 1.2.21 freezes on session start if the current working directory is a symlink[/+]bnkamalesh commentedon Mar 8, 2026
same problem for me, pc info:
Hona commentedon Mar 8, 2026
oh it - fix shortly
AndrewP-GH commentedon Mar 8, 2026
Also faced with this problem!