feat(me): add wbox me user-id and disambiguate IDs in table output#91
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wbox me user-id, which printscurrent_user.idas a bare integer so it composes cleanly with--assigned-to "$(wbox me user-id)".wbox me --format tablerows tologin_idanduser_id (--assigned-to)so the two IDs aren''t confusable at a glance.references/lookups.md,tasks.md,contacts.md) flag the trap inline near--assigned-to.The /me response overloads
id: top-levelidis the login profile (one per Wealthbox account, across workspaces), whilecurrent_user.idis the workspace user ID that filters like--assigned-toactually 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 intests/test_me.py)ruff check src/ tests/— cleancurrent_user.id🤖 Generated with Claude Code