Skip to content

Fix /deploy uncommitted-changes warning and production match - #324

Merged
molebox merged 2 commits into
mainfrom
fix/deploy-command-build-logs
Oct 19, 2026
Merged

molebox merged 2 commits into
mainfrom
fix/deploy-command-build-logs

Conversation

@roboeve

@roboeve roboeve Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

/deploy sends agents to the wrong logs when a build fails and tells users the opposite of what happens to uncommitted files. This fixes both, plus a loose production-argument match.

Why

  • On an ERROR deployment, the command runs vercel logs <url>. That shows request and runtime logs, so a failed build returns nothing useful. Build output comes from vercel inspect <url> --logs.
  • Preflight says uncommitted changes "will not be included". vercel uploads the local working tree minus the default ignore list and .vercelignore, so dirty and untracked files do ship. The warning should be the reverse.
  • The production gate fired when $ARGUMENTS "contains" prod, which also matches words like "product".

Approach

  • commands/deploy.md.tmpl: use vercel inspect <url> --logs for failed builds, flip the uncommitted-changes warning, and match prod/production as whole words.
  • skills/deployments-cicd/SKILL.md (the "Inspect Deployments" section that /deploy includes): add the build-logs command and label vercel logs as runtime logs. The --follow line was dropped so the skill stays within the 12KB explain vercel.json budget the test enforces.
  • commands/deploy.md regenerated with bun run build:from-skills. The OpenCode test assertion was updated for the new gate wording.

Validation

  • bun run typecheck && bun test: 1079 pass, 0 fail
  • bun run validate: passed
  • bun run build:from-skills:check: 0 stale

Update (@molebox)

Rebased onto main. The headline change (switching the failure path to vercel inspect <url> --logs and using vercel logs --deployment) already shipped in #332, so it was dropped. What's left:

  • Uncommitted-changes warning, reversed: uncommitted and untracked files do ship. vercel deploy collects files using the built-in ignore list plus .vercelignore/.nowignore only. .gitignore rules are never read and nothing runs git ls-files. Evidence: getVercelIgnore in the shipped vercel@64.5.0, and packages/client/src/utils/index.ts in vercel/vercel.
  • Production check: prod/production is now matched as a whole word. The test change only updates the rendered template text.
  • Clarification: "vercel logs shows request and runtime logs, not build output."

The optional inspect --logs # build logs line in deployments-cicd was dropped. It pushed the skill over the 12,000-byte budget in tests/cli-explain.test.ts, and /deploy already runs that command on failure. commands/deploy.md is regenerated. All checks pass.

roboeve Bot and others added 2 commits October 19, 2026 13:28
…atch

- vercel uploads the local working tree, so uncommitted and untracked
  files ship; the preflight warning said the opposite.
- Match prod/production as whole words so arguments like "product"
  do not trigger the production gate.
- Note that vercel logs shows request and runtime logs, not build
  output, next to the existing vercel inspect --logs failure step.
The CLI collects files with its built-in ignore list plus .vercelignore
(or .nowignore). It never reads .gitignore rules, so gitignored files
that are not on the built-in list or in .vercelignore ship too.
@molebox
molebox force-pushed the fix/deploy-command-build-logs branch from 716cab9 to 4fef9ef Compare October 19, 2026 11:38
@molebox molebox changed the title Fix /deploy build-log command and uncommitted-changes warning Fix /deploy uncommitted-changes warning and production match Oct 19, 2026
@molebox
molebox marked this pull request as ready for review October 19, 2026 11:59
@molebox
molebox merged commit 0db4408 into main Oct 19, 2026
5 checks passed
@molebox
molebox deleted the fix/deploy-command-build-logs branch October 19, 2026 11:59
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.

1 participant