Skip to content

Stop identifying Apple Terminal from TERM_SESSION_ID - #53438

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/27db11cb7bcca8f94888f9e21a6cdfcf31561b1b
Oct 12, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/27db11cb7bcca8f94888f9e21a6cdfcf31561b1b

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Stop identifying Apple Terminal from TERM_SESSION_ID

Why

TERM_SESSION_ID is not specific to Apple Terminal. Treating it as an Apple Terminal identifier can mask Windows Terminal detection and the TERM fallback.

What changed

Remove the TERM_SESSION_ID detection heuristic. Apple Terminal remains detectable through TERM_PROGRAM=Apple_Terminal.

Testing

Update tests to cover Windows Terminal detection and the TERM fallback when TERM_SESSION_ID is present, and Apple Terminal detection with its version and user-agent token.

## Why

`TERM_SESSION_ID` is not specific to Apple Terminal. Treating it as an Apple Terminal identifier can mask Windows Terminal detection and the `TERM` fallback.

## What changed

Remove the `TERM_SESSION_ID` detection heuristic. Apple Terminal remains detectable through `TERM_PROGRAM=Apple_Terminal`.

## Testing

Update tests to cover Windows Terminal detection and the `TERM` fallback when `TERM_SESSION_ID` is present, and Apple Terminal detection with its version and user-agent token.

GitOrigin-RevId: 27db11cb7bcca8f94888f9e21a6cdfcf31561b1b
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/27db11cb7bcca8f94888f9e21a6cdfcf31561b1b branch from 820e005 to 7c1b64c Compare October 12, 2026 17:52
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
πŸ“ Code Review πŸ”„ Running since 2026-10-12T17:52:23.504336Z 820e005 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with πŸ‘€ while any review is running, comments if it has suggestions, and reacts with πŸ‘ once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 7c1b64c into main Oct 12, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/27db11cb7bcca8f94888f9e21a6cdfcf31561b1b branch October 12, 2026 17:52
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 12, 2026
@AscendFoam
AscendFoam deployed to issue-triage October 12, 2026 17:54 — with Image GitHub Actions Active
@AscendFoam
AscendFoam deployed to issue-triage October 12, 2026 17:54 — with Image GitHub Actions Active
@AscendFoam
AscendFoam deployed to issue-triage October 12, 2026 17:54 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage β€” 7c1b64c5 Deployed Oct 12, 2026 by AscendFoam via Identify potential duplicates (all issues) #54809
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants