Skip to content

Use code-mode 0.6 typed results - #7

Merged
ggoodman merged 2 commits into
agent/sandbox-0-16from
agent/code-mode-0-6-results
Aug 2, 2026
Merged

Use code-mode 0.6 typed results#7
ggoodman merged 2 commits into
agent/sandbox-0-16from
agent/code-mode-0-6-results

Conversation

@ggoodman

@ggoodman ggoodman commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • upgrade @torkbot/code-mode from ^0.3.1 to ^0.6.0
  • migrate client setup to the required ProgramContract API
  • prove ordered text and image results cross the Sandbox runtime transport
  • align direct runtime outcomes and documentation with required content

User journey

Sandbox-backed programs can now accumulate semantic results independently of diagnostic console output:

export default function ({ result }: AgentProgramScope) {
  result.appendText("sandboxed");
  result.appendImage({
    data: imageBase64,
    mimeType: "image/png",
  });
}

The successful client outcome carries those items in append order.

Stack

This PR is intentionally based on #6, the active Sandbox 0.16 upgrade, so it does not race or overwrite that work. Its own commit changes only the code-mode compatibility seam.

Validation

  • npm ci
  • npm run typecheck
  • npm test (21 tests)
  • npm run build
  • npm pack --dry-run
  • npm audit --omit=dev --audit-level=high (0 vulnerabilities)
  • git diff --check

ggoodman commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

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

Copy link
Copy Markdown

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: 9211ba523a

ℹ️ 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 thread README.md Outdated

ggoodman commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 2715bf8c51

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

@ggoodman
ggoodman merged commit 26308d5 into agent/sandbox-0-16 Aug 2, 2026
3 checks passed
@ggoodman
ggoodman deleted the agent/code-mode-0-6-results branch August 2, 2026 14:09
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