Skip to content

fix: honor language defaults for BYO agents - #2081

Open
nanookclaw wants to merge 1 commit into
aws:mainfrom
nanookclaw:fix/byo-typescript-language
Open

fix: honor language defaults for BYO agents#2081
nanookclaw wants to merge 1 commit into
aws:mainfrom
nanookclaw:fix/byo-typescript-language

Conversation

@nanookclaw

Copy link
Copy Markdown

Closes #2075

add agent --type byo --language TypeScript currently persists the Python runtime and entrypoint, so the documented TypeScript BYO path later selects the wrong packager. This updates the BYO mapping to use the existing language default maps: TypeScript now persists NODE_22 and main.js when no entrypoint is supplied. Python and Other retain their existing PYTHON_3_14 / main.py behavior, and explicitly supplied entrypoints remain unchanged.

The focused add-agent regression coverage verifies persistence for TypeScript, Python, and Other. git diff --check passed. The local checkout did not include the npm toolchain, and npx could not reach the registry (EAI_AGAIN), so the Vitest, TypeScript, and Prettier checks could not run locally.

@nanookclaw
nanookclaw requested a review from a team August 24, 2026 15:14
@github-actions github-actions Bot added the size/s PR size: S label Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add agent --type byo ignores --language TypeScript

1 participant