Skip to content

Conversation

@Pangjiping
Copy link
Collaborator

@Pangjiping Pangjiping commented Jan 18, 2026

Summary

  • migrate the bash execution implementation from Jupyter to PTY.
  • use concurrent-safe maps to avoid single point of dependency on global locks.
  • add bash execution test for python/js.
  • remove bash jupyter kernel installation by code-interpreter.

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

@Pangjiping Pangjiping added the enhancement New feature or request label Jan 18, 2026
@jwx0925
Copy link
Collaborator

jwx0925 commented Jan 19, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b20500ddb

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +216 to +220
cleanCmd := strings.ReplaceAll(command, "\n", " ; ")

// send command + marker, preserving the user's last exit code
// use a subshell at the end to restore $? to the original exit code
cmdText := fmt.Sprintf("%s\n__c=$?\nprintf \"%s${__c}%s\\n\"\n(exit ${__c})\n", cleanCmd, exitCodePrefix, exitCodeSuffix)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve newline semantics in bash commands

Before executing a bash command, run replaces every newline with ;. This changes shell semantics and breaks newline-sensitive constructs such as here-docs (cat <<'EOF' ... EOF) or multi-line case/read blocks, which now become syntax errors. Since the API accepts multi-line code strings, this is a regression for valid bash scripts. Consider sending the original string (or another framing mechanism that preserves newlines) instead of flattening them.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants