auth commands do not match a workspace id typed with the wksp_ prefix the Console shows
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- authentication, cli
Research direction
Start with packages/cli/src/commands/auth/session-ref.ts and compare its workspace-id check with sameWorkspaceId in packages/cli/src/lib/workspace-id.ts. Exercise the affected auth command with both a bare workspace id and the wksp_-prefixed form; done means either form finds the stored session.
Written by the indexing model from the issue text.
Description
packages/cli/src/commands/auth/session-ref.ts compares the typed workspace id with ===. Stored sessions hold the bare id from the token claim, while the Console and the API show wksp_-prefixed ids, so an auth command given a wksp_ id finds no session. A sameWorkspaceId helper already exists in packages/cli/src/lib/workspace-id.ts; this code does not use it.
Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L330
🤖 Generated with Claude Code
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 2
- Avg merge
- 13h 3m
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prisma/prisma-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#309 · 1 comment ·
Maintainers usually reply within 1 day
-
The update notice tells users to install @prisma/cli and does not recognise a global prisma installOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#306 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
prisma/prisma-cli#305 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
prisma/prisma-cli#302 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prisma/prisma-cli#299 ·
Maintainers usually reply within 1 day
All issues in prisma/prisma-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
external-issue to-triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
diegosouzapw/OmniRoute#15401 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
code-yeongyu/oh-my-openagent#9454 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
smart-village-solutions/sva-studio#1654 ·
Maintainers usually reply within 1 day