feat(plugin): resolve session project from git remote, not a pinned project_id #65
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The plugin's SessionStart hook asked for a
project_idvia plugin userConfig — which pins a single install to one project. The operator works across many repos/projects, so that assumption was wrong. Resolve the active project server-side from the working repo's git remote instead (a stable identifier, not a dir-name guess).What changed
repo_bindingstable (migration0064) +RepoBindingmodel —(user, repo_key) → project, FKs CASCADE.services/repo_bindings—normalize_repo_keycollapses ssh/https/scp/creds/port/.gittohost/owner/repo;resolve_project/set/list/delete.GET /api/plugin/context?repo=<remote>— resolves the bound project; an unbound repo returns standing rules + a "bind this repo" hint with a readybind_repo()call.project_idkept only as a manual override.bind_repo/list_repo_bindings/unbind_repo.?repo=$(git remote get-url origin)URL-encoded; allproject_idhandling removed.plugin.json— drops theproject_iduserConfig (0.1.2 → 0.1.3).Refs task 755 (Scribe-as-plugin push channel). CI green on
dev(run 809).Post-merge
Rebuild the instance (the running image predates
/api/plugin/context), then bind this repo once:bind_repo("https://git.fabledsword.com/bvandeusen/FabledScribe.git", 2).🤖 Generated with Claude Code