Skip to content

fix(artifacts): save into a folder given as the artifacts path, and d… - #354

Merged
finalerock44 merged 3 commits into
devfrom
fix/artifacts-path-directory
Nov 23, 2026
Merged

finalerock44 merged 3 commits into
devfrom
fix/artifacts-path-directory

Conversation

@finalerock44

Copy link
Copy Markdown
Contributor

…on't fall back on local file errors

A folder passed as --artifacts-path (or the MCP tool's artifactsPath) failed with EISDIR once the download had started. The CLI took that for a broken stream and fell back to the inline download, which made the API build the whole ZIP and then failed the same way (dcd#2138).

  • A folder (one that exists, or a path ending in a separator) now gets artifacts.zip inside it. The success message, the command's result and the MCP tool name the file. The MCP tool resolves the folder before its write checks, so they run on the file.
  • A local file-system error while saving a bundle (EACCES, ENOSPC...) is reported as it is instead of triggering the inline fallback, which could only fail the same way.
  • Telemetry follows --api-url before a login's stored API URL. A logged-in run aimed at another API sent its events to the login's API.

What & why

Type of change

  • fix — bug fix
  • feat — new feature
  • perf — performance improvement
  • refactor — code change that's neither a fix nor a feature
  • docs — documentation only
  • chore / ci / build / test — tooling, no user-facing change
  • Breaking change (title has ! or PR notes a BREAKING CHANGE:)

Checklist

  • PR title follows the Conventional Commits format (see comment above)
  • pnpm lint passes
  • pnpm typecheck passes
  • pnpm build passes
  • I have not bumped the version or edited CHANGELOG.md (the release workflow handles this)
  • I have signed the CLA (the bot will prompt on first contribution)
  • Docs / README.md / STYLE_GUIDE.md updated if behaviour or output changed

How to test

…on't fall back on local file errors

A folder passed as --artifacts-path (or the MCP tool's artifactsPath)
failed with EISDIR once the download had started. The CLI took that for
a broken stream and fell back to the inline download, which made the API
build the whole ZIP and then failed the same way (dcd#2138).

- A folder (one that exists, or a path ending in a separator) now gets
  artifacts.zip inside it. The success message, the command's result
  and the MCP tool name the file. The MCP tool resolves the folder before
  its write checks, so they run on the file.
- A local file-system error while saving a bundle (EACCES, ENOSPC...) is
  reported as it is instead of triggering the inline fallback, which
  could only fail the same way.
- Telemetry follows --api-url before a login's stored API URL. A
  logged-in run aimed at another API sent its events to the login's API.
@finalerock44 finalerock44 self-assigned this Nov 23, 2026
Comment thread src/gateways/api-gateway.ts Resolved
finalerock44 and others added 2 commits November 23, 2026 17:46
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
@claude

claude Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Code review

No bugs found in the code changes. I checked for bugs and CLAUDE.md compliance.

One CLAUDE.md issue is in the PR description, not the code:

  • The PR body cites a private-repo issue number (dcd#2138, in the first paragraph). CLAUDE.md says: "This repo is public … Keep out: … private-repo issue/PR numbers … Describe the fault generically … and link the private issue from the private side instead." Please remove the reference from the description. The squash-merge body comes from the PR, so the reference would otherwise reach dev's history and could reach the changelog. GitHub keeps earlier revisions of the description, so editing it doesn't remove the reference from that history.

🤖 Generated with Claude Code

@finalerock44
finalerock44 merged commit 9d9adc2 into dev Nov 23, 2026
9 checks passed
@finalerock44
finalerock44 deleted the fix/artifacts-path-directory branch November 23, 2026 17:53
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