Skip to content

Environment capture.#119

Merged
johnno1962 merged 22 commits into
mainfrom
worktree2
Mar 3, 2026
Merged

Environment capture.#119
johnno1962 merged 22 commits into
mainfrom
worktree2

Conversation

@johnno1962
Copy link
Copy Markdown
Owner

@johnno1962 johnno1962 commented Feb 16, 2026

Capturing proxy environment
Mapping macro plugin paths
Bazel macro puin paths.

@johnno1962 johnno1962 force-pushed the worktree2 branch 3 times, most recently from f18f36a to d10dfe3 Compare February 17, 2026 10:55
@johnno1962 johnno1962 force-pushed the worktree2 branch 3 times, most recently from d95caca to d7cf925 Compare February 17, 2026 18:01
@johnno1962 johnno1962 force-pushed the worktree2 branch 16 times, most recently from b72d8ff to 88a30ce Compare February 18, 2026 15:04
@johnno1962 johnno1962 force-pushed the worktree2 branch 3 times, most recently from 510a01c to 56bfd33 Compare February 22, 2026 16:13
@johnno1962 johnno1962 force-pushed the worktree2 branch 3 times, most recently from 4bc5005 to 23081bc Compare February 22, 2026 23:35
Copy link
Copy Markdown
Contributor

Copilot AI 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 implements environment variable capture for Swift frontend commands to improve injection reliability. The changes enable the InjectionNext system to preserve and replay the build environment when recompiling injected sources.

Changes:

  • Added environment variable capture in the swift-frontend.sh proxy script
  • Updated compiler invocation to apply captured environment during recompilation
  • Refactored metrics tracking and compilation caching logic

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
SwiftRegex5 Updated subproject commit reference
Sources/InjectionNextC/include/InjectionClient.h Removed unused COMMANDS_VERSION macro definition
Sources/InjectionNext/InjectionNext.swift Added error handling override and enhanced trace framework condition checks
README.md Added documentation about COMPILATION_CACHE_ENABLE_CACHING incompatibility and /Applications requirement
InjectionLite Updated subproject commit reference
App/feedcommands/main.mm Added environment capture header and buffered write implementation
App/InjectionNext/swift-frontend.sh Modified to capture environment variables and updated version to 2.0
App/InjectionNext/NextCompiler.swift Added environment field to Compilation struct, refactored metrics tracking, and implemented environment variable application during recompilation
App/InjectionNext/MonitorXcode.swift Changed recompiler to static property and updated comment tense
App/InjectionNext/InjectionServer.swift Enhanced error message with INJECTION_PROJECT_ROOT guidance
App/InjectionNext/InjectionNext-Bridging-Header.h Added InjectionNextSalt.h import
App/InjectionNext/InjectionHybrid.swift Refactored injection timing logic and moved lastInjected tracking to class level
App/InjectionNext/Info.plist Bumped build version
App/InjectionNext/FrontendServer.swift Implemented environment variable parsing and applied captured environment during command processing
App/InjectionNext/Experimental.swift Updated references to use static recompiler and moved lastInjected to InjectionHybrid
App/InjectionNext.xcodeproj/project.pbxproj Added script phase to generate random COMMANDS_VERSION and updated package versions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread App/feedcommands/main.mm Outdated
Comment thread App/InjectionNext/NextCompiler.swift
Comment thread App/InjectionNext/FrontendServer.swift
@johnno1962 johnno1962 force-pushed the worktree2 branch 2 times, most recently from ffc554a to de09c67 Compare February 23, 2026 11:39
@johnno1962 johnno1962 requested a review from Copilot February 23, 2026 11:40
Copy link
Copy Markdown
Contributor

Copilot AI 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

Copilot reviewed 16 out of 17 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/InjectionNext/InjectionNext.swift
Comment thread App/InjectionNext/InjectionNext-Bridging-Header.h
Comment thread App/feedcommands/main.mm
Comment thread App/InjectionNext.xcodeproj/project.pbxproj
Comment thread App/InjectionNext/FrontendServer.swift
Comment thread README.md Outdated
@johnno1962 johnno1962 force-pushed the worktree2 branch 4 times, most recently from dcdb0bc to d948427 Compare February 23, 2026 13:04
Copy link
Copy Markdown
Contributor

Copilot AI 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

Copilot reviewed 16 out of 17 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread App/feedcommands/main.mm
Comment thread App/InjectionNext/swift-frontend.sh
Comment thread App/InjectionNext/FrontendServer.swift
Comment thread App/InjectionNext/InjectionHybrid.swift
Comment thread App/InjectionNext/InjectionServer.swift
Comment thread App/InjectionNext/NextCompiler.swift
Comment thread App/InjectionNext/NextCompiler.swift
Comment thread README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI 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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread App/InjectionNext/FrontendServer.swift Outdated
Comment thread App/InjectionNext/InjectionHybrid.swift
Comment thread App/InjectionNext/InjectionServer.swift
Comment thread App/InjectionNext/MonitorXcode.swift
johnno1962 and others added 3 commits February 25, 2026 00:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants