Skip to content

fix: resolve workspace file browser to groves/ instead of projects/#132

Closed
scion-gteam[bot] wants to merge 2 commits into
mainfrom
scion/dev-issue-130
Closed

fix: resolve workspace file browser to groves/ instead of projects/#132
scion-gteam[bot] wants to merge 2 commits into
mainfrom
scion/dev-issue-130

Conversation

@scion-gteam
Copy link
Copy Markdown

@scion-gteam scion-gteam Bot commented Jun 3, 2026

Summary

  • Fix: hubManagedProjectPath() now resolves to ~/.scion/groves/<slug>/ (the actual git checkout mounted as /workspace in agents) instead of ~/.scion/projects/<slug>/ (which only contains project metadata and Telegram plugin downloads)
  • Fallback preserved: If groves/ has no workspace content, falls back to projects/ for backward compatibility
  • Default changed: When neither directory has content, defaults to groves/ path instead of projects/

Fixes #130

Test plan

  • Updated TestHubManagedProjectPath — default path now resolves to groves/
  • Added TestHubManagedProjectPath_PrefersGrovesOverProjects — when both dirs have content, groves/ wins
  • Added TestHubManagedProjectPath_FallsBackToProjectsWhenGrovesEmpty — falls back to projects/ when groves/ has no real content
  • Added TestHubManagedProjectPath_DefaultsToGrovesWhenNeitherHasContent — defaults to groves/ when neither has content
  • All hub package tests pass

ptone added 2 commits June 3, 2026 23:37
The Hub UI file browser was showing the wrong directory contents. The
hubManagedProjectPath() function resolved workspace paths to
~/.scion/projects/<slug>/ (project metadata) instead of
~/.scion/groves/<slug>/ (the actual git checkout mounted as /workspace
in agents).

Reverse the lookup priority: check groves/ first, fall back to
projects/, and default to groves/ when neither has content.

Fixes #130
@ptone ptone closed this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Hub UI workspace file browser shows wrong directory (projects/ instead of groves/)

1 participant