Sessions not displayed in /session for specific project path despite being written to storage #4348

Open
opened 2026-02-16 17:43:31 -05:00 by yindo · 1 comment
Owner

Originally created by @gianlucahe on GitHub (Jan 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Sessions are being correctly written to disk storage for a specific project path, but the /session command shows nothing/doesn't work for that path. Other project paths work correctly.

  • OpenCode version: 1.0.220 (via Homebrew)
  • OS: macOS 26.2 (arm64)
  • Shell: zsh

Usually for other files/session works. But for a few (I can't figure out why, as it literally came out of nowhere as it was working fine the whole time), it doesn't show sessions.

Originally created by @gianlucahe on GitHub (Jan 7, 2026). Originally assigned to: @rekram1-node on GitHub. Sessions are being correctly written to disk storage for a specific project path, but the `/session` command shows nothing/doesn't work for that path. Other project paths work correctly. - **OpenCode version:** 1.0.220 (via Homebrew) - **OS:** macOS 26.2 (arm64) - **Shell:** zsh Usually for other files`/session` works. But for a few (I can't figure out why, as it literally came out of nowhere as it was working fine the whole time), it doesn't show sessions.
Author
Owner

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

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

  • #6697: [BUG] Session switching doesn't change working directory context - Related issue about session directory context not being properly maintained when resuming sessions
  • #6316: [FEATURE] Context Auto-Discovery: Load AGENTS.md from Directories When Accessing Files - Related discussion about how OpenCode handles files in nested directories
  • #1877: Support a root folder for aggregating sessions across subdirectories - Feature request for multi-worktree support that discusses similar session/directory resolution issues
  • #5910: Undo previous message incorrectly restores project state - Related issue about session directory context when running from subfolders
  • #4479: Configurable instruction file search boundary - Related to how OpenCode searches for configuration across directory boundaries

The core issue appears to be related to how OpenCode resolves project IDs and session paths when running from subfolders within git repositories. Feel free to ignore if your specific case differs from these issues.

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #6697: [BUG] Session switching doesn't change working directory context - Related issue about session directory context not being properly maintained when resuming sessions - #6316: [FEATURE] Context Auto-Discovery: Load AGENTS.md from Directories When Accessing Files - Related discussion about how OpenCode handles files in nested directories - #1877: Support a root folder for aggregating sessions across subdirectories - Feature request for multi-worktree support that discusses similar session/directory resolution issues - #5910: Undo previous message incorrectly restores project state - Related issue about session directory context when running from subfolders - #4479: Configurable instruction file search boundary - Related to how OpenCode searches for configuration across directory boundaries The core issue appears to be related to how OpenCode resolves project IDs and session paths when running from subfolders within git repositories. Feel free to ignore if your specific case differs from these issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4348