Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-modelinstead 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 onShellModeland 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 fromcrates/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)replacestake_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.strings::task::close_tab(&str)names the close button from the model-cleaned title.ShellModel::request_openclears the Approvals "nothing was sent" line only when a task really takes the main area;set_open_taskssettles 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.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 callersresolves by bare name, so its output was a pointer only. By grep:take_pendinghas no caller left incrates/ordesktop/; the GPUI crate usedoutbox.backandsent, nottake_pending, so it is unchanged;call_refusedis called only from tests until the host exists. The tests oftole-desktop-model,tole-desktopanddesktop/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 -- --checkin the root and indesktop/: clean.cargo clippy --locked --all-targets -- -D warningsindesktop/, and-p tole-desktop-model -p tole-desktopin the root: clean.cargo test --locked --no-fail-fast:desktop/282 passed, 0 failed;-p tole-desktop-model -p tole-desktop1097 passed, 0 failed.scripts/arch-check.sh,scripts/arch-check.sh desktopandscripts/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.deny.tomlchange, so nocargo denyrun.Cora as the agent's reviewer (
scripts/review-local.sh --agent, fresh read-only reviewers that did not write the code, answers merged withscripts/cora-agent-review.py finalize; CI Cora Review is skipped whileCORA_PAUSEis set, so this is the review evidence):set_open_tasksand two tests.finalizestill 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 warningsfails 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.