opencode crashed if there is no git in project #7016

Closed
opened 2026-02-16 18:05:54 -05:00 by yindo · 1 comment
Owner

Originally created by @muhammadsyaddad on GitHub (Jan 20, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

when the project not installed git the agent chat not respone anything

Plugins

none

OpenCode version

1.1.28

Steps to reproduce

add into the docs install git before the opencode command in the root project
OR
make the open code install a git before if when running opencode and there is no git, then install git ..

Screenshot and/or share link

https://github.com/user-attachments/assets/e25e3bb3-7179-4cc3-afcd-f25a2cca4267

Operating System

macos ventura 13.07.08

Terminal

Ghostty

Originally created by @muhammadsyaddad on GitHub (Jan 20, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description when the project not installed git the agent chat not respone anything ### Plugins none ### OpenCode version 1.1.28 ### Steps to reproduce add into the docs install git before the opencode command in the root project OR make the open code install a git before if when running opencode and there is no git, then install git .. ### Screenshot and/or share link https://github.com/user-attachments/assets/e25e3bb3-7179-4cc3-afcd-f25a2cca4267 ### Operating System macos ventura 13.07.08 ### Terminal Ghostty
yindo added the bugdocs labels 2026-02-16 18:05:54 -05:00
yindo closed this issue 2026-02-16 18:05:54 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8538: Session lookup fails with NotFoundError when PTY spawned from non-git directory context
  • #7787: [BUG] opencode github install - "Could not find git repository" in valid git repo
  • #8707: opencode CLI hangs on macOS 15 (Apple Silicon) – daemon fails to start, empty ~/.opencode/package.json
  • #7918: Crash when local.agent.current() returns undefined during startup/auth
  • #9437: Agent.get() returns undefined without error handling, causing crash
  • #8099: first install windows.exe it is work, when i uninstall, reinstall it, always in initialing

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #8538: Session lookup fails with NotFoundError when PTY spawned from non-git directory context - #7787: [BUG] opencode github install - "Could not find git repository" in valid git repo - #8707: opencode CLI hangs on macOS 15 (Apple Silicon) – daemon fails to start, empty ~/.opencode/package.json - #7918: Crash when local.agent.current() returns undefined during startup/auth - #9437: Agent.get() returns undefined without error handling, causing crash - #8099: first install windows.exe it is work, when i uninstall, reinstall it, always in initialing Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7016