Repository navigation
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityhelp wantedMaintainers welcome external contributionintegration: dcodeLangChain Deep Code integration behavior
Description
Objective
Make the existing Deep Agents Code start-script fixture own repeated start.sh construction mechanics.
Evidence
test/support/dcode-start-script-fixture.ts already centralizes common rewriting, but similar setup remains in:
test/helpers/langchain-deepagents-code-headless.tstest/langchain-deepagents-code-proxy-launcher.test.tstest/dcode-start-keepalive.test.ts
These paths repeat entrypoint-wrapper and resource-limit paths, managed proxy files, owner UID replacement, temporary proxy environment paths, file contents, and modes.
Scope
- Extend the existing support fixture with only the options required by current consumers.
- Move shared file creation, path replacement, ownership substitution, and mode setup into it.
- Preserve consumer-specific marker-directory, resource-limit helper, proxy, and macOS behavior.
- Keep
dcode-launcher.shfixture construction out of scope. - Do not change production shell source.
Relationships
- Parent Epic: Consolidate test support and enforce test-suite boundaries #8345
- Blocked by: None. Work can start independently.
- Blocks: None.
This is not a good first issue: the fixture protects shell, permission, proxy, and fail-closed resource-limit contracts.
Acceptance criteria
- The three remaining
start.shbuilders consume the shared fixture. - Common production-path substitutions exist in one module.
- Fail-closed resource-limit, proxy, auto-approval, identity, and headless assertions remain local.
- The change has a negative net LOC delta.
Validation
npx vitest run --project integration test/dcode-start-keepalive.test.ts test/langchain-deepagents-code-proxy-launcher.test.ts test/langchain-deepagents-code-headless-runtime.test.ts test/langchain-deepagents-code-image.test.ts test/langchain-deepagents-code-auto-approval-image.test.ts test/dcode-sandbox-identity-integration.test.tsMetadata
Metadata
Assignees
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityhelp wantedMaintainers welcome external contributionintegration: dcodeLangChain Deep Code integration behavior
Activity
refactor(test): centralise Deep Agents Code start-script fixture (NVI…