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

fix(agent/agentcontainers): read WorkspaceFolder from config#18467

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

Merged
DanielleMaywood merged 1 commit intomainfromdm-devcontainer-workspace-folder
Jun 20, 2025

Conversation

DanielleMaywood
Copy link
Contributor

Instead of exec'ingpwd inside of the container, we instead readWorkspaceFolder from the outcome ofread-configuration.

Instead of exec'ing `pwd` inside of the container, we instead read`WorkspaceFolder` from the outcome of `read-configuration`.
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 replaces the execution of "pwd" inside containers with reading the workspace folder from the container configuration, thereby aligning the implementation with the new configuration-based approach.

  • Introduces a new Workspace field (of type DevcontainerWorkspace) in the devcontainer configuration.
  • Updates tests to expect the workspace folder from configuration and adjusts label paths accordingly.
  • Removes legacy exec-based workspace folder detection from the API logic.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

FileDescription
agent/agentcontainers/devcontainercli.goAdds the Workspace field and its corresponding type to support configuration-based workspace retrieval.
agent/agentcontainers/api_test.goUpdates test expectations by removing assertions on exec-based "pwd" detection and adjusting folder labels.
agent/agentcontainers/api.goRemoves exec-based folder detection and assigns the workspace folder from configuration.
Comments suppressed due to low confidence (2)

agent/agentcontainers/api.go:1150

  • Consider adding tests for cases where config.Workspace.WorkspaceFolder might be empty to ensure that the default workspace folder is used as a fallback.
workspaceFolder = config.Workspace.WorkspaceFolder

agent/agentcontainers/api_test.go:1328

  • Verify that the removal of exec-based checks does not leave any gaps in test coverage for the workspace folder initialization; additional tests may be required to cover this new configuration flow.
testutil.RequireSend(ctx, t, fakeDCCLI.readConfigErrC, func(envs []string) error {

@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewJune 20, 2025 12:42
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

👍

@DanielleMaywoodDanielleMaywood merged commitd61353f intomainJun 20, 2025
38 checks passed
@DanielleMaywoodDanielleMaywood deleted the dm-devcontainer-workspace-folder branchJune 20, 2025 15:34
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 20, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

Copilot code reviewCopilotCopilot left review comments

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@DanielleMaywoodDanielleMaywood

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@DanielleMaywood@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp