GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Inject OPENCODE_SESSION_ID into shell env by jakvbs · Pull Request #12159 · anomalyco/opencode

Conversation

@jakvbs

@jakvbs jakvbs commented Feb 4, 2026

Copy link
Copy Markdown

Summary

  • inject OPENCODE_SESSION_ID into bash tool env
  • inject OPENCODE_SESSION_ID into user shell command env
  • add bash tool test for session env

Testing

  • bun run typecheck (packages/opencode)
  • bun run lint (packages/opencode)
  • bun turbo typecheck (pre-push hook)

Fixes #12158

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jakvbs and others added 3 commits February 4, 2026 17:20
@jakvbs
fix: remove 30 char limit from question tool header/label validation
69416e6
@jakvbs
Revert "fix: remove 30 char limit from question tool header/label val…
af0541b
…idation"

This reverts commit 81abcf6b2ab6b49b060e43e2198ad6da67fa3547.
@jakvbs
feat(opencode): inject session id into shell env
8a1d2b7
@github-actions github-actions Bot added the needs:title label Feb 4, 2026
@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title Inject OPENCODE_SESSION_ID into shell env doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jakvbs
jakvbs marked this pull request as ready for review February 4, 2026 17:30
@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Found a potentially related PR:

PR #9289: feat(tool): expose session context to child processes via environment variables

  • feat(tool): expose session context to child processes via environment variables #9289
  • This appears to be addressing the same feature: exposing session context to child processes through environment variables. Worth checking if this was previously closed/abandoned or if your PR builds on it differently.

The other related PRs (#9724, #10451, #11381) are about bash tool configuration and environment variables but address different concerns (shell resolution, model-id variables, bash safety).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jakvbs
Merge branch 'dev' into feat/opencode-session-id-env
9bc71e5
@jakvbs jakvbs closed this Feb 4, 2026
@jakvbs
jakvbs deleted the feat/opencode-session-id-env branch February 5, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs:title

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Inject OPENCODE_SESSION_ID into shell command environment

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jakvbs
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.