R6.13 round 1 fix: notches per platform, the worker decides arrows

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-15 20:22:23 -04:00
1 parent c2897aa21a
commit d427d05b96
15 files changed
+196 -73

No files matched your search

+5 -3
View File
@@ -9,7 +9,8 @@ use std::{
use futures::{StreamExt, channel::mpsc, select_biased};
use gpui::Context;
use super::{Geom, LokError, LokView, Reported, TILE_TWIPS, input::Input};
use super::input::{Back, Input};
use super::{Geom, LokError, LokView, Reported, TILE_TWIPS, Turn};
use crate::{Doc, Tile, Worker};
/// An input slower than this is logged as a warning.
@@ -24,7 +25,7 @@ pub(super) struct Job {
/// What came back from the lane.
enum Landed {
/// Sequence, whether it edits, whether it switched part, outcome.
Input(u64, bool, bool, (io::Result<Option<String>>, Option<u64>)),
Input(u64, bool, bool, (io::Result<Option<Back>>, Option<u64>)),
Tile(Job, io::Result<Tile>),
}
@@ -111,7 +112,8 @@ impl LokView {
}
self.seen_revision(now.unwrap_or(0));
match outcome {
Ok(Some(copied)) => self.copied = Some(copied),
Ok(Some(Back::Copied(copied))) => self.copied = Some(copied),
Ok(Some(Back::Turned(step))) => cx.emit(Turn(step)),
Ok(None) => {}
Err(error) => {
log::error!("lok: input failed ({:?})", error.kind());