Skip to content

fix: preserve PowerShell session during install - #3

Merged
onjsdnjs merged 1 commit into
mainfrom
agent/preserve-powershell-session
Jul 22, 2026
Merged

fix: preserve PowerShell session during install#3
onjsdnjs merged 1 commit into
mainfrom
agent/preserve-powershell-session

Conversation

@onjsdnjs

Copy link
Copy Markdown
Contributor

변경 내용

  • irm https://install.ctxa.ai/install.ps1 | iex 실행 시 설치 스크립트의 exit 0/1이 호출 PowerShell 전체를 종료하던 동작을 제거했습니다.
  • 설치 실행을 격리된 스크립트블록으로 감싸 함수·StrictMode·preference 변수가 호출자 영역에 남지 않도록 했습니다.
  • 성공·실패 시 콘솔 인코딩 복원과 PowerShell 5.1 한국어 오류 출력을 직접 실행 방식에 맞게 처리했습니다.
  • 최초 설치, 동일 버전 재실행, 실패 경로 모두에 IEX 이후 동일 세션 명령 실행 판정을 추가했습니다.

원인

기존 테스트는 설치 파일을 별도 powershell.exe -File 프로세스로만 실행했습니다. 따라서 exit가 그 프로세스를 끝내는 것을 정상 종료로 오판했고, 실제 문서 명령인 irm ... | iex에서 사용자의 현재 PowerShell 창까지 종료하는 결함을 포착하지 못했습니다.

검증

  • PowerShell 설치 정적 계약: 통과
  • IEX 설치·무변경 재실행·업데이트·롤백·삭제: 통과
  • IEX 실패 후 호출 세션 생존: 통과
  • PowerShell 5.1 한국어 성공·실패 출력 및 종료코드: 통과
  • 기존 -File 한국어 오류 코드 계약: 통과
  • PowerShell 7: 현재 실행 환경에 없어 명시적 skip

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
install-ctxa Building Building Preview, Comment Jul 22, 2026 7:47am

@onjsdnjs
onjsdnjs marked this pull request as ready for review July 22, 2026 07:48
@onjsdnjs
onjsdnjs merged commit 7b81b93 into main Jul 22, 2026
7 of 8 checks passed
@contexa73
contexa73 deleted the agent/preserve-powershell-session branch July 22, 2026 07:50
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.

1 participant