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: specify--header-command when runningcoder start#526

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
aslilac merged 4 commits intomainfromlilac/specify-header-command
Jun 5, 2025

Conversation

aslilac
Copy link
Member

Closes#499

Thecoder start command can't always work properly without specifying these args (eg., getting past proxies). This refactors the code a little to make it easier to get the right argument values, and passes them tocoder start.

@aslilacaslilac requested a review fromCopilotJune 2, 2025 21:25
Copy link

@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 refactors the way header command arguments are handled when running the "coder start" command so that the necessary "--header-command" argument is always provided. Key changes include:

  • Adding a new helper function escapeCommandArg in util.ts for escaping command arguments.
  • Replacing getHeaderCommand with getHeaderArgs in remote.ts and updating the command formation.
  • Adjusting headers.ts and api.ts to support the new header arguments generation and propagation.

Reviewed Changes

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

FileDescription
src/util.tsAdded escapeCommandArg for safely escaping command arguments.
src/remote.tsUpdated header argument handling to use getHeaderArgs.
src/headers.tsIntroduced getHeaderArgs to generate escaped header arguments.
src/api.tsSpread header arguments into the arguments list for coder start.

@bcpeinhardt
Copy link
Collaborator

bcpeinhardt commentedJun 3, 2025
edited
Loading

@aslilac would you mind adding a note to the changelog as well?

CHANGELOG.md Outdated
@@ -12,6 +12,7 @@
- Multiple open instances of the extension could potentially clobber writes to
`~/.ssh/config`. Updates to this file are now atomic.
- Add support for `anysphere.remote-ssh` Remote SSH extension.
- Use `--header-command` properly when starting a workspace.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you meant to put this in the unreleased section!

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

it's dark and scary in here, I got lost 😭

bcpeinhardt reacted with laugh emoji
@aslilacaslilac requested a review frombcpeinhardtJune 3, 2025 21:16
@aslilac
Copy link
MemberAuthor

gonna wait to merge this until tomorrow. we're talking with the customer this is for and gonna try to do some testing.

bcpeinhardt reacted with thumbs up emoji

@aslilacaslilac merged commitd70a586 intomainJun 5, 2025
2 checks passed
@aslilacaslilac deleted the lilac/specify-header-command branchJune 5, 2025 17:16
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@bcpeinhardtbcpeinhardtAwaiting requested review from bcpeinhardt

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

Successfully merging this pull request may close these issues.

Bug: When using AppProxy in Azure, headers are not passed
2 participants
@aslilac@bcpeinhardt

[8]ページ先頭

©2009-2025 Movatter.jp