Add PTY terminal passthrough for browser clients#27252
Add PTY terminal passthrough for browser clients#27252ghostwriternr merged 8 commits intoproductionfrom
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
9b1731a to
004b754
Compare
|
Updated with comprehensive PTY API documentation:
Ready for review. |
0d0f054 to
a497307
Compare
|
Updated documentation with comprehensive PTY coverage: Added Files
Documentation Highlights
All content follows Cloudflare docs style guide with TypeScriptExample components and proper linking. 🤖 Generated with Claude Code |
a497307 to
8f0537f
Compare
8f0537f to
a2fbbc4
Compare
a246615 to
7eb6adf
Compare
7eb6adf to
255d829
Compare
|
Updated with complete documentation:
Ready for review! |
255d829 to
cdfa2c5
Compare
683febe to
58b0d0d
Compare
9d7acc2 to
d0cdd01
Compare
1a87503 to
afc7f14
Compare
Update: Added Terminal Emulation GuideI've added a comprehensive how-to guide for terminal emulation to complement the existing PTY API reference: New file: Coverage:
This guide provides practical examples for developers building terminal interfaces, complementing the API reference with real-world implementation patterns. Related to cloudflare/sandbox-sdk#310 |
374ae4e to
7384511
Compare
7384511 to
87d1699
Compare
0d60176 to
883f22c
Compare
This comment was marked as spam.
This comment was marked as spam.
883f22c to
8725948
Compare
- Add comprehensive terminal API reference with WebSocket protocol details - Create detailed guide for building browser-based terminal UIs - Include xterm.js SandboxAddon integration and examples - Document multi-session terminal support and error handling - Add terminal feature showcase to main sandbox overview - Update API index to include new terminal functionality Covers the new terminal() method, proxyTerminal() function, and @cloudflare/sandbox/xterm addon introduced in PR #310.
7a4cbe5 to
e4ea4b9
Compare
Documents the new terminal() methods that enable WebSocket-based browser terminals connected to sandbox shells, including the xterm.js addon and complete integration guide.
|
/bonk fix the conflict and ensure build is passing |
…ts language identifiers to code fences
Co-authored-by: ghostwriternr <ghostwriternr@users.noreply.github.com>
|
Here's a summary of what was done: Changes Made1. Resolved merge conflict with productionFile: The branch had a conflict where the PR's "Terminal Access" tab had replaced the "File Watching" tab that was added to production. Resolved by keeping both tabs - the existing "File Watching" tab from production and the new "Terminal Access" tab from this PR. 2. Fixed build error in browser-terminals.mdxFile: An HTML code block ( 3. Added
|
|
/bonk can you kickoff the pending action here? Seems stuck for no reason |
…dentifiers - Remove stray code fences at end of sessions.mdx and index.mdx - Fix four-backtick code fence in terminal.mdx (should be three) - Add ts language identifiers to all TypeScriptExample code blocks - Add txt language to ASCII diagram in concepts/terminal.mdx - Remove invalid top-level order:0 from index.mdx frontmatter
|
Here's what I found and fixed: SummaryThe CI was actually passing on the latest commit — the previous However, I found several additional issues in the PR files that could cause build failures or rendering problems: Critical fixes
Other fixes
|
Summary
Documents the new terminal support feature that enables browser-based terminal UIs to connect to sandbox shells via WebSocket. This change corresponds to PR #310 in cloudflare/sandbox-sdk.
What's included
sandbox.terminal()andsession.terminal()methods for WebSocket proxy connectionsSandboxAddonclass that handles browser-side connectionsChanges
/sandbox/api/terminal/- API reference for terminal WebSocket methods/sandbox/api/xterm-addon/- Documentation for the browser-side xterm.js addon/sandbox/guides/browser-terminals/- Complete integration guide with examples/sandbox/api/index to include new terminal API sections/sandbox/api/sessions/to reference terminal methodsFeatures documented
Synced from: cloudflare/sandbox-sdk#310