You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix several small bugs that an AI agent detected (#2303)
A collection of small bug fixes found with the help of an AI agent
scanning the codebase. None of these are known to be actively exploited
or causing user-reported issues, but each is a latent defect that could
cause crashes, hangs, or incorrect behaviour under the right conditions.
## Fixes
**Credential UI** — `github/gitlab: use correct param order`
- Custom credential UI commands had swapped URL and username arguments.
**Stream extensions** — `streamextensions: fix a bug in multi-var reset
handling`
- Multi-dictionary writer emitted the wrong value when a reset marker
was followed by a single entry.
**GitHub auth** — `github: handle empty domain or enterprise hints`
- Null-reference exception when WWW-Authenticate header is missing
domain/enterprise hints.
**GitHub account filtering** — `github: do not filter accounts outside
of dotcom`
- Account filtering was applied outside of GitHub.com despite detecting
it shouldn't be.
**Network diagnostics** — `diagnose: fix network diag to await HTTP
requests`
- HTTP requests in the network diagnostic were not properly awaited.
**macOS notarize script** — `macos: add die function to notarize.sh
script`
- Missing `die` function.
**Git stderr handling** — `git: drain stderr on IsInsideRepository`
- Potential hang when Git writes enough to stderr to fill the pipe
buffer.
**Windows layout script** — `windows: fix layout.ps1 if symboloutput is
not set`
- Null-reference trimming `SymbolOutput` when the variable is unset.
**OAuth device code UI** — `oauth: pass cancellation token to in-proc
device code UI`
- Cancellation token was not forwarded, so dismissing the dialog didn't
work.
**TRACE2 thread ID** — `trace2: fix main thread identification`
- Main thread ID starts at 1, not 0.
**TRACE2 perf format** — `trace2: fix crash in perf format for large
elapsed times`
- `ArgumentOutOfRangeException` crash when elapsed time exceeds 9999
seconds.
**HTTP config** — `http: use correct http.sslAutoClientCert setting
name`
- Setting was read from the wrong Git config section.
**TRACE2 writer cleanup** — `trace2: fix incomplete disposal of writers
on cleanup`
- Forward iteration with removal skipped every other writer, leaking
file handles.
**Git stderr redirect** — `git: fix crash when reading stderr from
non-redirected processes`
- `InvalidOperationException` when `GetRemotes`/`CreateGitException`
read non-redirected stderr.
**Executable lookup** — `environment: check execute permission in
TryLocateExecutable`
- PATH scan didn't verify execute bits on POSIX, unlike the `which` it
replaced.
**Installer Exec command** — `windows: fix en-dash characters in
installer Exec command`
- Unicode en-dash characters instead of ASCII hyphens broke PowerShell
5.1 parameter parsing.
0 commit comments