Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(agent/agentcontainers): support apps for dev container agents#18346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
DanielleMaywood wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromdm-sub-agent-apps-configuration-2

Conversation

DanielleMaywood
Copy link
Contributor

@DanielleMaywoodDanielleMaywood commentedJun 12, 2025
edited
Loading

Add apps to the sub agent based on the dev container customization.

{  "name": "Development Container",  "image": "mcr.microsoft.com/devcontainers/typescript-node:18",  "customizations": {    "coder": {      "apps": [        {          "slug": "web-app",          "displayName": "Web Application",          "url": "http://localhost:8080/${localEnv:CODER_USER_NAME}/${localEnv:CODER_WORKSPACE_NAME}/${localEnv:CODER_AGENT_NAME}",          "openIn": "tab",          "share": "owner",          "icon": "${localEnv:CODER_DEPLOYMENT_URL}/icons/web.svg",          "order": 1,          "group": "Web Editors"        }      ]    }  }}

The implementation also provides the following env variables for use in the devcontainer json

  • CODER_AGENT_NAME
  • CODER_USER_NAME
  • CODER_WORKSPACE_NAME
  • CODER_DEPLOYMENT_URL

@DanielleMaywoodDanielleMaywoodforce-pushed thedm-sub-agent-apps-configuration-2 branch fromd06023f to08f0f9cCompareJune 12, 2025 19:47
Base automatically changed fromdm-sub-agent-apps-configuration tomainJune 12, 2025 22:36
@DanielleMaywoodDanielleMaywoodforce-pushed thedm-sub-agent-apps-configuration-2 branch from08f0f9c to6270098CompareJune 12, 2025 22:42
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for propagating user-defined apps (SubAgentApp) through the devcontainer workflow and into the agent API.

  • IntroducesSubAgentApp and health-check definitions insubagent.go and includes them in create requests.
  • ExtendsFakeAgentAPI to record and retrieve apps for end-to-end testing.
  • Updates the devcontainer CLI interface to accept environment variables and injects user/workspace context inAPI.injectSubAgentIntoContainerLocked.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
agent/agenttest/client.goAddsGetSubAgentApps and backing store in fake API
agent/agentcontainers/subagent.goDefinesSubAgentApp, maps to proto request, includes in Create
agent/agentcontainers/subagent_test.goTests conversion ofSubAgentApp to proto in Create
agent/agentcontainers/devcontainercli.goExtendsReadConfig signature to accept env vars
agent/agentcontainers/devcontainercli_test.goAdjustsReadConfig calls in tests
agent/agentcontainers/api.goInjects apps and user/workspace name into sub-agent create
agent/agentcontainers/acmock/acmock.goUpdates mock signature forReadConfig
Comments suppressed due to low confidence (2)

agent/agentcontainers/api.go:164

  • The comment forWithUserName incorrectly states it sets the workspace name; it should say it sets the user name.
// WithUserName sets the workspace name for the sub-agent.

agent/agentcontainers/subagent.go:27

  • [nitpick] This exported type lacks a doc comment. Consider adding a comment aboveSubAgentApp explaining its purpose and fields.
type SubAgentApp struct {

@DanielleMaywoodDanielleMaywoodforce-pushed thedm-sub-agent-apps-configuration-2 branch fromfc5d9b9 tobacab01CompareJune 13, 2025 14:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

@DanielleMaywoodDanielleMaywood

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp