Skip to content

Centralize Deep Agents Code start-script fixture construction #8355

Closed

Description

@jyaunches

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.ts
  • test/langchain-deepagents-code-proxy-launcher.test.ts
  • test/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.sh fixture construction out of scope.
  • Do not change production shell source.

Relationships

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.sh builders 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.ts

Activity

  1. added
    help wanted
    area: architecture
    integration: dcode
    on Aug 5, 2026
  2. added theissue type on Aug 5, 2026
  3. self-assigned this
    on Aug 6, 2026
  4. added a commit that references this issue on Aug 7, 2026
    dd09a9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: architecturehelp wantedintegration: dcode

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions