Repository navigation
fix(tags): label project tags with the project name, not the root path - #536
Conversation
lindixu6-hash
left a comment
There was a problem hiding this comment.
Change looks correct and scoped, and the tests are updated along with it. One blocker on our side: the Quality workflow (format/lint/typecheck/test) shows no run on the head commit, so we can't verify CI yet — holding the merge until that's confirmed.
lindixu6-hash
left a comment
There was a problem hiding this comment.
The Quality workflow has now run, but not everything passed: Quality / check passed, and GitGuardian passed, but Platform Package Smoke failed on all five OS jobs (ubuntu-24.04, ubuntu-26.04, windows-latest, macos-15, macos-26), all in the "Run test suite" step. The failing test is the same on the jobs checked (ubuntu-24.04 and macos-15): tests/plugin-bundle-boundary.test.ts#L53 — "OpenCode plugin loader bundle boundary > does not pull local embedding transformer internals into the plugin-loader bundle": Expected to not contain: "node_modules/@huggingface/transformers". The step then ends with "Process completed with exit code 1." (ubuntu-24.04: 1340 tests across 169 files, 1335 pass, 4 skip, 1 fail). Note this matches the plugin-loader bundle boundary failure described in PR #537 as pre-existing on unmodified main, so it may not be caused by this change — but holding the merge until that's confirmed.
Prefer project_name in the tag picker so project tags show a basename instead of the capture-time root path.
b48e543 to
1996d26
Compare
Summary
Project tags in the web UI's tag picker render as the full project root path (
C:\Users\...\avenma-property), because every capture stores the project root asdisplay_nameandTagFilter.sveltelabels options withdisplayName || tag.getDistinctTagsalready returnsproject_name, so prefer it. User-scope tags have noproject_nameand keep their existingdisplay_name(git name/email), so nothing changes there.C:\Users\me\code\avenma-propertyavenma-propertyproject_name)AdaAda(unchanged)Server-side only, so no web bundle rebuild and every client benefits.
Test plan
bun test tests/api-handlers-list-tags.test.tspasses; with the source change stashed it fails as expected (Expected: demo-app,Received: /tmp/demo-app)bun run check(format, lint, typecheck)bun testfull suite: same 3 failures as unmodifiedmainon this machine (config default, onnxruntime shim, plugin loader bundle boundary), no new failuresKnown limitations
updateMemoryto honour an explicitdisplayNameplus a field in the edit dialog; kept out of this PR to keep it reviewable.