Skip to content

feat(me): add wbox me user-id and disambiguate IDs in table output#91

Merged
massive-value merged 1 commit into
mainfrom
me-user-id-disambiguation
May 13, 2026
Merged

feat(me): add wbox me user-id and disambiguate IDs in table output#91
massive-value merged 1 commit into
mainfrom
me-user-id-disambiguation

Conversation

@massive-value

Copy link
Copy Markdown
Owner

Summary

  • Adds wbox me user-id, which prints current_user.id as a bare integer so it composes cleanly with --assigned-to "$(wbox me user-id)".
  • Relabels wbox me --format table rows to login_id and user_id (--assigned-to) so the two IDs aren''t confusable at a glance.
  • JSON output is unchanged (byte-identical to today''s shape) — no breaking change for existing scripts.
  • Skill docs (references/lookups.md, tasks.md, contacts.md) flag the trap inline near --assigned-to.

The /me response overloads id: top-level id is the login profile (one per Wealthbox account, across workspaces), while current_user.id is the workspace user ID that filters like --assigned-to actually accept. An agent in the field passed the login-profile ID and got silent zero results.

Closes #90

Test plan

  • pytest — all 396 tests pass (4 new in tests/test_me.py)
  • ruff check src/ tests/ — clean
  • New tests cover: bare-integer output, table relabeling, JSON byte-identity, error on missing current_user.id

🤖 Generated with Claude Code

The /me response overloads `id` — top-level `id` is the login profile,
while `current_user.id` is the workspace user ID that filters like
`--assigned-to` actually accept. Agents grabbing the top-level value got
silent zero results.

- New `wbox me user-id` prints `current_user.id` as a bare integer for
  `--assigned-to "$(wbox me user-id)"` composition.
- `wbox me --format table` now labels the two IDs `login_id` and
  `user_id (--assigned-to)`. JSON output is byte-identical.
- Skill docs (lookups.md, tasks.md, contacts.md) flag the trap inline.

Closes #90
@massive-value massive-value merged commit 22728e8 into main May 13, 2026
6 checks passed
@massive-value massive-value deleted the me-user-id-disambiguation branch May 13, 2026 15:48
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.

wbox me: surface the assignable user ID unambiguously (login-profile id vs. workspace user.id)

1 participant