Skip to content

🗿 feat: Add Attached Stateful Code Environments - #15352

Merged
danny-avila merged 11 commits into
devfrom
danny-avila/stateful-code-environments
Aug 30, 2026
Merged

danny-avila merged 11 commits into
devfrom
danny-avila/stateful-code-environments

Conversation

@danny-avila

Copy link
Copy Markdown
Collaborator

Summary

  • add first-class managed/attached stateful code environments to Agents configuration and persistence
  • route selected agents to an environment-specific Code API while deriving stable, environment-scoped runtime session IDs
  • fail closed for unknown environment IDs and ambiguous environment defaults
  • expose the environment selector in the agent panel
  • skip background prewarming for attached workers so it cannot race the first explicit user execution
  • add a browser E2E fixture covering two-turn workspace persistence

Configuration

endpoints:
  agents:
    statefulCodeSessions:
      allowedEnvironments: [conversation]
      environments:
        - id: engineering-vm
          name: Engineering VM
          type: attached
          baseURL: https://code-bridge.example.com/v1
          default: true

Verification

  • agent execution/prewarm Jest suites (31 passed)
  • data-provider configuration suite (112 passed)
  • LibreChat package builds
  • full client production build
  • staged lint/import/static checks
  • isolated Playwright E2E on LibreChat port 33080 with dedicated MongoDB on 27028, Redis, Code API, sandbox, and outbound worker; two turns preserved librechat-bridge-persisted in the same workspace

Companion runtime/CLI implementation: LibreChat-AI/code-interpreter#66

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 4f7975a808b1e29571d68cb0a006c010ab50ded6

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-30T14:23:06.746458Z cc3fee9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4f7975a808

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/api/src/agents/lazySubagents.ts
Comment thread packages/api/src/agents/execution.ts
Comment thread packages/api/src/agents/validation.ts Outdated
Comment thread packages/data-provider/src/config.ts Outdated
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 0a021137c996b82e1ecc20e43502c5fccb283f2c

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a021137c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/data-provider/src/codeEnvRef.ts
Comment thread api/server/services/Files/Code/crud.js Outdated
Comment thread api/server/services/Files/Code/process.js
Comment thread api/server/controllers/agents/v1.js
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review c32a4c47d

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c32a4c47d8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/api/src/agents/execution.ts
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review fb4501274

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb45012746

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/api/src/agents/execution.ts
Comment thread packages/api/src/agents/execution.ts
Comment thread api/server/controllers/agents/v1.js
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 9738daadb

@danny-avila
danny-avila force-pushed the danny-avila/stateful-code-environments branch from 9738daa to 5ee1d50 Compare August 30, 2026 13:09
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 5ee1d50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ee1d502f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread client/src/components/SidePanel/Agents/AgentPanel.tsx Outdated
Comment thread packages/api/src/endpoints/config/endpoints.ts Outdated
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 2636b8a

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 01e84ca

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 01e84ca9bb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/api/src/agents/execution.ts Outdated
Comment thread client/src/components/SidePanel/Agents/Advanced/StatefulSessions.tsx Outdated
Comment thread packages/data-provider/src/config.ts Outdated
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review 04087fa

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04087fab4e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread api/server/services/Files/Code/crud.js
Comment thread packages/api/src/agents/execution.ts Outdated
Comment thread packages/data-provider/src/config.ts
@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review b89da17

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: b89da1764d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review cc3fee9

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: cc3fee97c6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila danny-avila changed the title feat: add attached stateful code environments 🗿 feat: Add Attached Stateful Code Environments Aug 30, 2026
@danny-avila
danny-avila merged commit c1cb591 into dev Aug 30, 2026
38 checks passed
@danny-avila
danny-avila deleted the danny-avila/stateful-code-environments branch August 30, 2026 19:38
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