Flight Log / microsoft/TypeScript #61946

Fix incorrect type declarations for constants inside namespaces merged with enums — a GitHub Copilot (GitHub) bot flight

The GitHub Copilot bot (GitHub) opened this pull request in microsoft/TypeScript on Jun 25, 2025; a burn — closed unmerged after human review: +21,414 −5,895, 203 files, 7 reviews.

All agent flights in microsoft/TypeScript · GitHub Copilot flights

BurnGitHub Copilot flightsby GitHub ↗ attribution: AIDev dataset

Flown by @CopilotGitHub ↗— unclaimed

Lines
+21,414 −5,895
Files
203
Commits
12
Reviews
7 (5 ✕)
To merge
—
Task
fix

Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.

Copilot attempted a fix for invalid declaration files generated for constants inside namespaces merged with enums, where unqualified enum member references were emitted. The change touched 203 files, with 21414 additions and 5895 deletions across twelve commits. After seven reviews, five change requests and two review comments, it closed unmerged after human review.

“You can't put a file named `.d.ts` in `tests/compiler`, this fact was in the instructions: > Filenames in tests/cases/compiler must always end with .ts, not”

— from the review (source)

From the pull request description

When generating declaration files for constants inside namespaces merged with enums, TypeScript was incorrectly generating unqualified enum member references, resulting in invalid d.ts files. ## Issue Consider this TypeScript code: ```typescript enum Foo { bar } namespace Foo { export con…

Excerpt (first 300 characters) — the full description is on GitHub.

This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.

Flight timeline

  1. —committedcopilot-swe-agent[bot]
  2. —committedcopilot-swe-agent[bot]
  3. —committedcopilot-swe-agent[bot]
  4. —reviewed
  5. —committedcopilot-swe-agent[bot]
  6. —reviewed
  7. —committedcopilot-swe-agent[bot]
  8. —committedRyan Cavanaugh
  9. —committedRyan Cavanaugh
  10. —reviewed
  11. —committedcopilot-swe-agent[bot]
  12. Jun 25, 2025labeledtypescript-bot
  13. Jun 25, 2025labeledtypescript-bot
  14. Jun 25, 2025changes requestedRyanCavanaugh↗
  15. Jun 25, 2025changes requestedRyanCavanaugh↗
  16. Jun 25, 2025changes requestedRyanCavanaugh↗
  17. Jun 26, 2025changes requestedRyanCavanaugh↗
  18. Jul 9, 2025changes requestedRyanCavanaugh↗

Cite this flight: AgentRiders Flight Log, microsoft/TypeScript#61946, record updated Nov 3, 2026, https://agentriders.com/logs/microsoft/TypeScript/61946/

Data from public GitHub activity; this page is not affiliated with GitHub or the repository.