Skip to content

fix(start:headless): swap removed start:mock-idp for start:dev-idp#2917

Open
mfbx9da4 wants to merge 1 commit into
mainfrom
fix/headless-script-dev-idp
Open

fix(start:headless): swap removed start:mock-idp for start:dev-idp#2917
mfbx9da4 wants to merge 1 commit into
mainfrom
fix/headless-script-dev-idp

Conversation

@mfbx9da4
Copy link
Copy Markdown
Contributor

@mfbx9da4 mfbx9da4 commented May 19, 2026

Summary

.mise-tasks/start/headless.sh invoked mise run start:mock-idp, which still points at ./mock-speakeasy-idp/main — a directory that was deleted in PR #2825 (fix(auth): admin override, slug dedup, and re-apply Speakeasy IDP removal). Running mise run start:headless therefore fails immediately with stat .../mock-speakeasy-idp/main: directory not found and never starts the IDP, which in turn blocks login from a headless dev environment.

mprocs.yaml was already updated to use start:dev-idp at the time of the removal, so this is an orphaned reference in the headless flow. This patch:

  • swaps start:mock-idpstart:dev-idp, and
  • renames the log file from mock-idp.logdev-idp.log so the new task's logs land in the path the user is told about.

Why this matters

mise run start:headless is the documented headless equivalent of madprocs. Without this fix, anyone bringing up Gram outside the TUI hits a stale-task failure during onboarding and has to bypass the script. Reported during a fresh-checkout login walkthrough where everything else needed to be hand-wired before the dashboard could authenticate.

Related stale references (not in this PR)

.mise-tasks/seed.mts carries the same bug: it still tries to authenticate via ${SPEAKEASY_SERVER_ADDRESS}/v1/speakeasy_provider/login, which was the mock-speakeasy-idp API. Neither SPEAKEASY_SERVER_ADDRESS nor SPEAKEASY_SECRET_KEY is defined anywhere in mise.toml after #2825. mise run seed currently fails with SPEAKEASY_SERVER_ADDRESS is not set. Fixing it requires re-implementing the auth bootstrap against dev-idp's mock-workos / OAuth2 flow (cookie-jar + /rpc/auth.login/rpc/auth.callback), so it deserves its own PR.

Test plan

  • mise run start:headless reaches All processes started. without the IDP task crashing.
  • tail /tmp/gram-dev/dev-idp.log shows dev-idp listening on :35291.
  • Login flow against https://localhost:5173 completes end-to-end against the mock-workos IDP.

start:mock-idp referenced ./mock-speakeasy-idp/main, which no longer
exists. mprocs.yaml already uses start:dev-idp; align the headless
script with it.
@mfbx9da4 mfbx9da4 requested a review from a team as a code owner May 19, 2026 11:48
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment May 19, 2026 11:48am

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 19, 2026

⚠️ No Changeset found

Latest commit: f6f83bf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mfbx9da4 mfbx9da4 enabled auto-merge May 19, 2026 11:49
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.

2 participants