Skip to content

fix(tags): label project tags with the project name, not the root path - #536

Merged
EyJunge1 merged 1 commit into
tickernelz:v3from
FellixFernando:fix/tag-label-project-name
Dec 4, 2026
Merged

EyJunge1 merged 1 commit into
tickernelz:v3from
FellixFernando:fix/tag-label-project-name

Conversation

@FellixFernando

Copy link
Copy Markdown
Contributor

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 as display_name and TagFilter.svelte labels options with displayName || tag.

getDistinctTags already returns project_name, so prefer it. User-scope tags have no project_name and keep their existing display_name (git name/email), so nothing changes there.

Tag Before After
project C:\Users\me\code\avenma-property avenma-property
project (no project_name) path path (unchanged)
user Ada Ada (unchanged)

Server-side only, so no web bundle rebuild and every client benefits.

Test plan

  • bun test tests/api-handlers-list-tags.test.ts passes; with the source change stashed it fails as expected (Expected: demo-app, Received: /tmp/demo-app)
  • bun run check (format, lint, typecheck)
  • bun test full suite: same 3 failures as unmodified main on this machine (config default, onnxruntime shim, plugin loader bundle boundary), no new failures
  • Exercised locally: tag picker now shows project names instead of paths

Known limitations

  • Only the label changes; the tag id stays the shard hash, by design.
  • No per-project custom label yet. That would need updateMemory to honour an explicit displayName plus a field in the edit dialog; kept out of this PR to keep it reviewable.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 08:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@lindixu6-hash lindixu6-hash left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 lindixu6-hash left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@EyJunge1
EyJunge1 force-pushed the fix/tag-label-project-name branch from b48e543 to 1996d26 Compare December 4, 2026 08:54
@EyJunge1
EyJunge1 changed the base branch from main to v3 December 4, 2026 08:54
@EyJunge1
EyJunge1 merged commit f304d2d into tickernelz:v3 Dec 4, 2026
1 check passed
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.

4 participants