Skip to content

Avoid hard-coded environment context shell#21390

Merged
starr-openai merged 1 commit into
mainfrom
starr/env-context-shell-hint-20260506
May 6, 2026
Merged

Avoid hard-coded environment context shell#21390
starr-openai merged 1 commit into
mainfrom
starr/env-context-shell-hint-20260506

Conversation

@starr-openai
Copy link
Copy Markdown
Contributor

Summary

  • make resolved turn environment shell metadata optional instead of hard-coding bash
  • render environment context shells from explicit environment metadata when present, falling back to the existing session shell
  • update environment context tests for inherited PowerShell-style fallback and explicit per-environment shell override

Testing

  • Not run (not requested; formatted with just fmt).
@starr-openai starr-openai requested a review from a team as a code owner May 6, 2026 17:51
@starr-openai starr-openai force-pushed the starr/env-context-shell-hint-20260506 branch 7 times, most recently from 8a1603b to 2a7c2fb Compare May 6, 2026 18:32
@starr-openai starr-openai force-pushed the starr/env-context-shell-hint-20260506 branch 2 times, most recently from e1d7f3b to f87717a Compare May 6, 2026 19:04
@starr-openai starr-openai enabled auto-merge (squash) May 6, 2026 19:12
Represent resolved turn environment shell metadata as optional, and render environment context shells from explicit per-environment metadata when present or the existing session shell otherwise. This avoids claiming bash for multi-environment Windows turns when the resolver has no shell metadata.

Update prompt-caching tests to expect the platform default session shell when asserting the baseline environment context.

Tests not run (CI exercises the Windows Bazel lane; ran just fmt).

Co-authored-by: Codex <noreply@openai.com>
@starr-openai starr-openai force-pushed the starr/env-context-shell-hint-20260506 branch from f87717a to 14f471a Compare May 6, 2026 19:38
@starr-openai starr-openai merged commit 63a27ad into main May 6, 2026
26 checks passed
@starr-openai starr-openai deleted the starr/env-context-shell-hint-20260506 branch May 6, 2026 19:54
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants