Skip to content

feat(desktop): Rune task page (board S3) - #1434

Open
ajianaz wants to merge 1 commit into
developfrom
feat/rune-task-view-page
Open

ajianaz wants to merge 1 commit into
developfrom
feat/rune-task-view-page

Conversation

@ajianaz

@ajianaz ajianaz commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

What

The task page of the native Rune desktop (Track F, epic #1378, F3, board S3): the tab strip of open tasks, the transcript window, the composer, the steps and the approval card of a task, with the three-task cap. It is written model first, like the pages of #1433.

Why

The task is the place where the owner reads what the agent did and answers it. After the shell and the four section pages, it is the page the shell could not yet open. The view state it needs (the call to the host, the outbox of a send, the measuring of rows, the tab order) is the same the GPUI task page already holds, so it moves into tole-desktop-model instead of being written twice.

Refs #1378. It does not close the GPUI issues: the GPUI views stay, frozen, until the Rune parity gate.

Changes

  • desktop/ui/src/task/: the page (strip, transcript window, composer, steps, approval card of a task). Presses are recorded on ShellModel and the host takes them once, as on the other pages. A task takes the main area without changing the section.
  • crates/tole-desktop-model/src/task/ (call, look, measure, outbox, pane, stops, tabs, view): the shared view state, moved from crates/tole-desktop/src/ui/task/. The GPUI crate keeps shims that re-export the moved types, so its behaviour is unchanged.
  • Outbox::take_refused(&TaskCall) replaces take_pending: the words of a refused send return to the composer only for the Send or Steer call that carried them, exactly once. A refused viewport, heights, toggle or stop gives nothing back.
  • task::is_session_id ([A-Za-z0-9_-], 1 to 64 bytes, the serve's own rule, shared with the approvals queue): an id outside it is never opened, because ids go into element keys, which are never cleaned.
  • Closing a tab moves focus to the neighbour's composer (the earlier tab, else the later one); closing the last tab gives the area back. strings::task::close_tab(&str) names the close button from the model-cleaned title.
  • ShellModel::request_open clears the Approvals "nothing was sent" line only when a task really takes the main area; set_open_tasks settles it when the host opens a task later.
  • desktop/harness/src/bin/task_r3.rs: measures the R3 numbers without a GPU (stream p95 about 1.3 ms). This is not the gate; the gate is the Mac measurement.
  • Shared hot spots, additive: focus.rs, pages.rs, model.rs, scenes/mod.rs, lib.rs, tests/focus_order.rs, desktop/README.md.

Gaps, on purpose: the right panel, attachments and the Care selector are not built, and nothing takes the page's calls from a live serve yet (the live-host PR).

Code intelligence (AGENTS.md section 4): cora callers resolves by bare name, so its output was a pointer only. By grep: take_pending has no caller left in crates/ or desktop/; the GPUI crate used outbox.back and sent, not take_pending, so it is unchanged; call_refused is called only from tests until the host exists. The tests of tole-desktop-model, tole-desktop and desktop/ were all run (below). No public item of a published crate was moved, renamed or removed.

Testing

Run on the final head:

  • cargo fmt --all -- --check in the root and in desktop/: clean.
  • cargo clippy --locked --all-targets -- -D warnings in desktop/, and -p tole-desktop-model -p tole-desktop in the root: clean.
  • cargo test --locked --no-fail-fast: desktop/ 282 passed, 0 failed; -p tole-desktop-model -p tole-desktop 1097 passed, 0 failed.
  • scripts/arch-check.sh, scripts/arch-check.sh desktop and scripts/desktop-check.sh all: ok (the literal warnings are advisory, in frozen GPUI files).
  • git log origin/develop..HEAD --format=%B | sh scripts/ci/message-patterns.sh: prints nothing.
  • No dependency and no deny.toml change, so no cargo deny run.

Cora as the agent's reviewer (scripts/review-local.sh --agent, fresh read-only reviewers that did not write the code, answers merged with scripts/cora-agent-review.py finalize; CI Cora Review is skipped while CORA_PAUSE is set, so this is the review evidence):

  • Round 1, the whole page in 8 chunks: 9 findings in the code and 7 in the tests, all fixed with regression tests.
  • Round 2, the fixes (2 chunks): 1 minor finding (a press on a task the host does not open cleared the Approvals line), fixed with set_open_tasks and two tests.
  • Round 3, that fix (1 chunk): no finding.
  • finalize still prints the cora index's deterministic findings (index-unused-import, index-dead-code). Each reviewer checked them against the source: all are false positives (re-exports, imports used in tests, #[test] functions); clippy with -D warnings fails on a real unused import.

Not verified: no real window, no GPU render and no pixel comparison with board S3 (the machine has no GPU adapter); layout is checked through the accessibility tree and element rectangles. IME, screen readers, high DPI and the Mac R3 gate were not tried.


The task page of the Rune desktop: tab strip, transcript window, composer, steps, approval card of a task and the three-task cap, written model first.

The view state moved into tole-desktop-model (call, look, measure, outbox, pane, stops, tabs, view); the GPUI crate keeps shims that re-export it. Outbox::take_refused gives a refused send's words back to the composer exactly once, for the Send or Steer that carried them. Session ids outside the serve's rule are never opened.

Refs #1378.
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