<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8" -->

---
title: Visual Studio Code 1.138 brings agent sessions to Dev...
description: VS Code 1.380 adds three AI coding features: agent sessions can now run inside a local folder's Dev Container (using project-configured environments instead of...
canonical: https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Visual Studio Code 1.138 brings agent sessions to Dev Containers | daily.dev
og:description: VS Code 1.380 adds three AI coding features: agent sessions can now run inside a local folder's Dev Container (using project-configured environments instead of...
og:url: https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8
og:image: https://api.daily.dev/og/posts/a5mAexSg8.png
og:image:alt: Visual Studio Code 1.138 brings agent sessions to Dev Containers
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Visual Studio Code 1.138 brings agent sessions to Dev Containers

**[InfoWorld](https://daily.dev/sources/infoworld)** · 2 min read · 0 upvotes · 0 comments

## Summary

VS Code 1.380 adds three AI coding features: agent sessions can now run inside a local folder's Dev Container (using project-configured environments instead of the local machine, requiring Docker), Codex support in the agent host now allows continuing sessions between the ChatGPT app and VS Code and switching between Copilot- and ChatGPT-backed models without losing context, and Codex can use VS Code's full tool set including extensions and MCP tools. A preview feature adds automatic cleanup of agent sessions once their pull requests merge. Agent automations are now enabled by default and can be exported, imported, or shared.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.infoworld.com/article/4225351/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers.html>

## Questions this post answers

### How do I run VS Code agent sessions inside a Dev Container?

Enable the chat.agentHost.devContainer setting in VS Code 1.380 or later. Once enabled, local folders with a supported Dev Container configuration show a folder menu with a Use Dev Container action, letting the agent use the project's configured environment and dependencies instead of the local machine. Docker must be installed for Dev Containers to work.

_daily.dev surfaces release notes like this for developers wiring up containerized agent workflows._

### Can I switch between Copilot and ChatGPT models in VS Code without losing my Codex conversation?

Yes, in VS Code 1.380 the expanded Codex harness lets users switch between Copilot-backed and ChatGPT-backed models from VS Code's model picker without losing the current conversation. Sessions can also continue between the ChatGPT app and VS Code instead of starting over, and Codex can use VS Code's extensions and MCP tools.

_Developers juggling multiple AI coding backends can track changes like this via daily.dev._

### What does the automatic agent session cleanup preview do in VS Code 1.380?

It lets the Agents window suggest marking an inactive session as done once all of its pull requests have merged, and it can automatically delete merged sessions after a specified number of days while preserving the conversation for later reference. This is a preview feature aimed at keeping finished agent work out of the way.

_daily.dev helps developers keep tabs on evolving agent tooling like session management in VS Code._

## Similar posts on daily.dev

- [Visual Studio Code 1.115 introduces VS Code Agents app](https://daily.dev/posts/visual-studio-code-1-115-introduces-vs-code-agents-app-v4yc2vcif) · InfoWorld · 0 upvotes · 0 comments
- [Visual Studio Code 1.138 \(Insiders\)](https://daily.dev/posts/visual-studio-code-1-138-insiders--cndyyup3t) · Visual Studio Code · 13 upvotes · 0 comments
- [Visual Studio Code 1.121](https://daily.dev/posts/visual-studio-code-1-121-rgoaodajp) · Visual Studio Code · 12 upvotes · 0 comments
- [Visual Studio Code 1.136 introduces agent merges for pull requests](https://daily.dev/posts/visual-studio-code-1-136-introduces-agent-merges-for-pull-requests-ww8irybk3) · InfoWorld · 1 upvotes · 0 comments

---

Tags: [#mcp](https://daily.dev/tags/mcp), [#vscode](https://daily.dev/tags/vscode), [#openai-codex](https://daily.dev/tags/openai-codex)

[View this post on daily.dev](https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Visual Studio Code 1.138 brings agent sessions to Dev Containers","url":"https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8"},"datePublished":"2026-09-23T03:43:31.517Z","dateModified":"2026-09-28T07:03:45.740Z","description":"VS Code 1.380 adds three AI coding features: agent sessions can now run inside a local folder's Dev Container (using project-configured environments instead of...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c85113d521be559930caad9baeae65da?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c85113d521be559930caad9baeae65da?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"InfoWorld","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoWorld","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bf6d68a999064029b0bb09aa6268f1f3","url":"https://daily.dev/sources/infoworld"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mcp,vscode,openai-codex","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoWorld","item":"https://daily.dev/sources/infoworld"},{"@type":"ListItem","position":3,"name":"Visual Studio Code 1.138 brings agent sessions to Dev Containers"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/visual-studio-code-1-138-brings-agent-sessions-to-dev-containers-a5maexsg8#faq","mainEntity":[{"@type":"Question","name":"How do I run VS Code agent sessions inside a Dev Container?","acceptedAnswer":{"@type":"Answer","text":"Enable the chat.agentHost.devContainer setting in VS Code 1.380 or later. Once enabled, local folders with a supported Dev Container configuration show a folder menu with a Use Dev Container action, letting the agent use the project's configured environment and dependencies instead of the local machine. Docker must be installed for Dev Containers to work. daily.dev surfaces release notes like this for developers wiring up containerized agent workflows."}},{"@type":"Question","name":"Can I switch between Copilot and ChatGPT models in VS Code without losing my Codex conversation?","acceptedAnswer":{"@type":"Answer","text":"Yes, in VS Code 1.380 the expanded Codex harness lets users switch between Copilot-backed and ChatGPT-backed models from VS Code's model picker without losing the current conversation. Sessions can also continue between the ChatGPT app and VS Code instead of starting over, and Codex can use VS Code's extensions and MCP tools. Developers juggling multiple AI coding backends can track changes like this via daily.dev."}},{"@type":"Question","name":"What does the automatic agent session cleanup preview do in VS Code 1.380?","acceptedAnswer":{"@type":"Answer","text":"It lets the Agents window suggest marking an inactive session as done once all of its pull requests have merged, and it can automatically delete merged sessions after a specified number of days while preserving the conversation for later reference. This is a preview feature aimed at keeping finished agent work out of the way. daily.dev helps developers keep tabs on evolving agent tooling like session management in VS Code."}}]}
```

