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): implement ignore customization for devcontainers#18530

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

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedJun 24, 2025
edited
Loading

This turned out to be a bit more tricky than I had anticipated. In my mind we must treat the ignore field differently than we have treateddevcontainer.json before.

Previously, in rough terms, thedevcontainer.json is "manifested" once for a container, and re-evaluated upon detecting a new container (recreation).

But if a user has a container running and wants to start ignoring it, it would be confusing if they had to "recreate" the devcontainer for it to disappear.

Fixescoder/internal#737

@@ -1077,7 +1145,8 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
// Container ID changed or the subagent process is not running,
// stop the existing subagent context to replace it.
proc.stop()
}else {
}
ifproc.agent.OperatingSystem=="" {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Review: Drive-by bug fix.

johnstcn reacted with laugh emoji
// if _, err := api.ccli.ExecAs(ctx, container.ID, "root", "setcap", "cap_net_admin+ep", coderPathInsideContainer); err != nil {
// logger.Warn(ctx, "set CAP_NET_ADMIN on agent binary failed", slog.Error(err))
// }

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Review: Shifted downward so we don't touch ignored containers.

@mafredrimafredriforce-pushed themafredri/feat-agent-enable-devcontainers-by-default branch from1138e1f to5f1d7fbCompareJune 24, 2025 18:16
@mafredrimafredrienabled auto-merge (squash)June 24, 2025 18:16
@mafredrimafredriforce-pushed themafredri/feat-agent-enable-devcontainers-by-default branch from5d3681c tof01711aCompareJune 24, 2025 18:38
@mafredrimafredri merged commite443f86 intomainJun 24, 2025
34 checks passed
@mafredrimafredri deleted the mafredri/feat-agent-enable-devcontainers-by-default branchJune 24, 2025 18:52
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

support "ignore me" devcontainer customization
3 participants
@mafredri@johnstcn@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp