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: handle agent parameter in URIs#538

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
ethanndickson merged 3 commits intomainfromethan/handle-agent-in-URI
Jun 25, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedJun 24, 2025
edited
Loading

This fixes a bug where theagent query parameter on the extension URI was ignored.

We were previously doing:

vscode.commands.executeCommand("coder.openDevContainer",workspaceOwner,workspaceName,workspaceAgent,devContainerName,devContainerFolder,);

whereargs[2] was the agent name, but we were discarding it:

constworkspaceOwner=args[0]asstring;constworkspaceName=args[1]asstring;constworkspaceAgent=undefined;// args[2] is reserved, but we do not support multiple agents yet.constdevContainerName=args[3]asstring;constdevContainerFolder=args[4]asstring;

The same was true for thecoder.open command. Presumably due to the comment saying multiple agents aren't supported, which hasn't been true for years.

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@@ -628,7 +628,7 @@ export class Commands {

const workspaceOwner = args[0] as string;
const workspaceName = args[1] as string;
const workspaceAgent =undefined; //args[2]is reserved, but we do not support multiple agents yet.
const workspaceAgent = args[2]as string;
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

openDevcontainer URIs must include the agent name to work properly, I believe, so this isstring and notstring | undefined.

mafredri reacted with thumbs up emoji
@ethanndicksonethanndickson marked this pull request as ready for reviewJune 24, 2025 09:44
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this!

# git config blame.ignoreRevsFile .git-blame-ignore-revs

# chore: simplify prettier config (#528)
f785902f3ad20d54344cc1107285c2a66299c7f6
Copy link
Member

Choose a reason for hiding this comment

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

What's the purpose of this?

Copy link
MemberAuthor

@ethanndicksonethanndicksonJun 24, 2025
edited
Loading

Choose a reason for hiding this comment

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

We have the same file oncoder/coder - it's just a convenient way to remove a formatting commit fromgit blame results. I noticed every line was blamed on#528. No longer the case after runninggit config blame.ignoreRevsFile .git-blame-ignore-revs

mafredri reacted with thumbs up emoji
@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedJun 25, 2025
edited
Loading

Merge activity

  • Jun 25, 1:25 AM UTC: A user started a stack merge that includes this pull request viaGraphite.
  • Jun 25, 1:25 AM UTC:@ethanndickson merged this pull request withGraphite.

@ethanndicksonethanndickson merged commit9d80d67 intomainJun 25, 2025
3 checks passed
@ethanndicksonethanndickson deleted the ethan/handle-agent-in-URI branchJune 25, 2025 01:25
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mafredrimafredrimafredri approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp