Title: id(ssh): input and presentation designs · Issue #535 · developing-today/code · GitHub
Open Graph Title: id(ssh): input and presentation designs · Issue #535 · developing-today/code
X Title: id(ssh): input and presentation designs · Issue #535 · developing-today/code
Description: What and why Designs for how SSH (and other terminal) sessions take input and present worlds, beyond the raw default and cmd: line mode that shipped in #211. Each needs a design, or a research package where marked, before implementation....
Open Graph Description: What and why Designs for how SSH (and other terminal) sessions take input and present worlds, beyond the raw default and cmd: line mode that shipped in #211. Each needs a design, or a research pack...
X Description: What and why Designs for how SSH (and other terminal) sessions take input and present worlds, beyond the raw default and cmd: line mode that shipped in #211. Each needs a design, or a research pack...
Opengraph URL: https://github.com/developing-today/code/issues/535
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(ssh): input and presentation designs","articleBody":"## What and why\n\nDesigns for how SSH (and other terminal) sessions take input and present worlds, beyond the raw default and `cmd:` line mode that shipped in #211. Each needs a design, or a research package where marked, before implementation. Ticked when its design is committed and an implementation issue exists. Not tracked: D1-049 (two SSH channels on one connection), which both reports say not to build until a real client exists.\n\n## Items\n\nEach box is done when the design (or research package) is committed and an implementation issue is linked here.\n\n- [x] **D1-040 — Documents as a session frame pair (web/CLI parity)** (M, design)\n Move `/documents` and `/document` from an SSH-local blob read to a `documents`/`document` ClientFrame/ServerFrame pair in world_session.rs, like `records`, so web and CLI clients can read world documents too.\n - Status: not started. `grep -n '\"documents\"\\|\"document\"' pkgs/id/src/world_session.rs` finds nothing; documents exist only in world_ssh.rs (:455).\n - Source: RPT §7 Step 1 'Decision to record'; RPT §16 Q3; RPT §12 Later\n - Prerequisites: #548 — D1-039 Fix #211 reconciliation gaps: total records cap, document output through `send`, per-world document store\n - Design: `doc/2026-11-01T16-05-00Z_design_documents_session_frames/` (PR #3760, merged 2026-11-01); implementation: #3762\n- [ ] **D1-045 — In-session command toggle (prefix key + visible mode indicator)** (M, research package)\n While in raw mode, a prefix key (Ctrl-P or `~ Enter`) opens a command prompt line with a visible indicator; /quit or the prefix returns to raw. Only if users ask for it.\n - Status: not started. The raw arm of `SshIo::recv` forwards bytes unconditionally (pkgs/id/src/world_ssh.rs:421-424); there is no prefix handling.\n - Source: REF:106-112, 135-149 (shape 3, triggers); RPT §7 Step 3.1; RPT §16 Q4\n - Prerequisites: #546 — D1-041 One line grammar shared by SSH command mode, `id world join` pump and CLI verbs (+ `--command-mode`)\n- [ ] **D1-046 — Split UI on one PTY (world grid + pinned command row, focus routing)** (L, research package)\n The server draws the world region plus a pinned bottom command row, and keystrokes route by focus; buffered output to the command region enables server-side autocomplete mid-game. The web client already has this shape (separate chat form).\n - Status: not started. No region or focus state in pkgs/id/src/world_ssh.rs; the web split exists (RPT cites pkgs/id/web/src/world.ts:524-533 chat form).\n - Source: REF:88-93 (shape 1); RPT §5 shape 1; RPT §7 Step 3.2\n - Prerequisites: #562 — D1-044 Incremental (diff) ANSI renderer instead of full clear-repaint, D1-045 In-session command toggle (prefix key + visible mode indicator) (in this list)\n- [ ] **D1-048 — Roc partial-line surface: non-journaled 'viewer is typing' notification to guests** (L, design)\n Pass the viewer's partial line to the program so a Roc app can render live autocomplete or a validating form. It is a new guest-facing surface and needs its own design: which event carries it, that it is never journaled, and its bounds.\n - Status: not started. Guests receive only committed `Input` bytes and `System` events (RPT cites sandbox.rs:677-685); no typing event kind exists in `WorldEventKind`.\n - Source: REF:161-164; RPT §5 'Extended to Roc apps'; RPT §7 Step 3.4\n - Prerequisites: D1-046 Split UI on one PTY (world grid + pinned command row, focus routing) (in this list), #534 (tracking issue) — D1-025 F12.7 Versioned guest ABI spec, plaza_abi_version export, conformance suite\n- [ ] **D1-052 — Presentation capability tiers with in-band terminal detection (ghostty-class default)** (XL, design)\n Target ghostty/kitty/wezterm as tier 1 (kitty keyboard protocol, kitty graphics or sixel, synchronized output DEC 2026, high fps), xterm-class as tier 2 (escape-timeout keys, cell grid, batching and diff rendering), and line mode as tier 3. Detection is in-band (XTGETTCAP, `CSI ? u`, DECRQM), so it works the same over SSH and iroh.\n - Status: not started. `grep -rn -i 'kitty\\|XTGETTCAP\\|DECRQM\\|2026h\\|sixel' pkgs/id/src pkgs/id/examples` finds nothing; key parsing is legacy-byte heuristics in pkgs/id/examples/roc-world/Key.roc.\n - Source: RPT §14 (all); RPT §16 Q6\n - Prerequisites: #545 — D1-042 Alternate screen for the raw interactive SSH session, #561 — D1-043 Server-side redraw batching (few-ms frame coalescing) for all presentations, #562 — D1-044 Incremental (diff) ANSI renderer instead of full clear-repaint\n- [ ] **D1-053 — Kitty keyboard protocol on the raw input path** (M, design)\n Negotiate the kitty keyboard protocol (`CSI > u`) where supported, so Escape vs Alt is unambiguous and key events go beyond the legacy byte stream; extend `Key.parse` and the browser encoder to match.\n - Status: not started. Key.parse decodes legacy sequences only (pkgs/id/examples/roc-world/Key.roc; RPT §2 lists the tag union). No negotiation in world_ssh.rs.\n - Source: RPT §14 Tier 1 and last paragraph\n - Prerequisites: D1-052 Presentation capability tiers with in-band terminal detection (ghostty-class default) (in this list)\n\n## Source\n\n- REF:106-112, 135-149 (shape 3, triggers)\n- REF:161-164\n- REF:88-93 (shape 1)\n- RPT §12 Later\n- RPT §14 (all)\n- RPT §14 Tier 1 and last paragraph\n- RPT §16 Q3\n- RPT §16 Q4\n- RPT §16 Q6\n- RPT §5 'Extended to Roc apps'\n- RPT §5 shape 1\n- RPT §7 Step 1 'Decision to record'\n- RPT §7 Step 3.1\n- RPT §7 Step 3.2\n- RPT §7 Step 3.4\n\nRPT = `doc/2026-10-18T18-40-00Z_report_platform_world_state/2026-10-18T18-40-00Z_report_platform_world_state.md`, REF = `doc/2026-10-18T00-00-00Z_reference_platform_state/2026-10-18T00-00-00Z_reference_platform_state.md`. Both are uncommitted reports in the `platform-world-apps-migration` worktree.\n\n## Size\n\nXL overall (items M to XL)\n\n## Prerequisites\n\nListed per item above.\n\n\u003c!-- discovery:D1-040 discovery:D1-045 discovery:D1-046 discovery:D1-048 discovery:D1-052 discovery:D1-053 -->\n\n## Acceptance criteria\n\n- [ ] Every item listed above has its design (or research package, where marked) committed to the repo\n- [ ] Every item has a linked implementation issue, and its checkbox above is ticked only once both are true\n- [ ] No item is closed out on the basis of a plan or report reference alone — the committed artifact is the evidence\n\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T06:07:36Z","url":"https://github.com/developing-today/code/issues/535"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3f0c207b-d8b2-8fc2-36e0-4147fe029012 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B448:372B4B:3E66BA:53EB41:6B061E60 |
| html-safe-nonce | a1502b39d362f24cf51b6c6c7441dd1bef6c0c1c890acd3ddcf3bb91fd64e2e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDQ4OjM3MkI0QjozRTY2QkE6NTNFQjQxOjZCMDYxRTYwIiwidmlzaXRvcl9pZCI6IjQxMTk3MDAyMDA4MjA3MTEwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d39395227c368318cf983aa4d50024a8c76d79647eb0f196b6ea6108603884d9 |
| hovercard-subject-tag | issue:5974043812 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/535/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dae13748edfc5e6aadeadc29c274bee66443135ac28eb9ffe71b1f1edd1ab8fe/developing-today/code/issues/535 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dae13748edfc5e6aadeadc29c274bee66443135ac28eb9ffe71b1f1edd1ab8fe/developing-today/code/issues/535 |
| og:image:alt | What and why Designs for how SSH (and other terminal) sessions take input and present worlds, beyond the raw default and cmd: line mode that shipped in #211. Each needs a design, or a research pack... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b25c3080e84402f75431d8dc7a96b2635219cec7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width