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): fix script filtering for devcontainers#18635

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

This was broken in#18630.

slog.F("config_path_param", configPath),
)
}

// Send logs via agent logging facilities.
logSourceID := api.devcontainerLogSourceIDs[dc.WorkspaceFolder]
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Review: We were accessing this outside the mutex so I moved it just in case due to change in how weInit() the API which allows part of the API to be used beforeInit() is called with input that changes this map.

@mafredrimafredriforce-pushed themafredri/fix-agent-fix-devcontainer-script-filtering branch from8402237 to18bfab2CompareJune 27, 2025 13:31
@mafredrimafredri marked this pull request as ready for reviewJune 27, 2025 13:33
agentcontainers.WithSubAgentClient(agentcontainers.NewSubAgentClientFromAPI(a.logger, aAPI)),
)

_, devcontainerScripts := agentcontainers.ExtractDevcontainerScripts(manifest.Devcontainers, manifest.Scripts)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any reason to call this function twice?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Mainly I wanted to reduce variable scope to avoid similar issues as introduced in the previous PR. And make it clear that scripts from earlier shouldn't be used here. It's a lightweight call but I can revert it if you prefer.

Copy link
Contributor

Choose a reason for hiding this comment

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

I have no issue with the duplication just wanted to ensure I knew the reason why, all good!

@mafredrimafredri merged commit8ee2668 intomainJun 27, 2025
36 checks passed
@mafredrimafredri deleted the mafredri/fix-agent-fix-devcontainer-script-filtering branchJune 27, 2025 13:59
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 27, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

@johnstcnjohnstcnAwaiting requested review from johnstcn

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mafredri@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp