Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 23 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,27 @@ inherits = "release"
lto = "thin"
codegen-units = 1
strip = "debuginfo"

# Windows scene-overlay plane (zeronsh/zui#15). Drop this patch and bump the zui
# rev above once it merges.
[patch."https://github.com/zeronsh/zui"]
collections = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
derive_refineable = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_linux = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_macos = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_macros = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_platform = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_shared_string = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_tokio = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_util = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_web = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_wgpu = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
gpui_windows = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
http_client = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
media = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
perf = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
refineable = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
scheduler = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
sum_tree = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
util_macros = { git = "https://github.com/Master0fFate/zui", rev = "6cc8c58a3cc63cce3e136f1e63d02bd66fd57ed5" }
2 changes: 2 additions & 0 deletions crates/engine/src/workspace_host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ impl WorkspaceHost {
/// Sidebar freshness on message persist: preview = first 120 chars of the last
/// message's text. Claims the row first so a pre-workspace chat gains one.
pub fn note_message(&self, chat_id: &str, text: &str) {
// Annotation tokens carry their element as hex; previews read the label.
let text = zeron_proto::annotation::annotation_display(text);
let preview: String = text.chars().take(120).collect();
let result = self.claim_chat(chat_id, None).and_then(|_| {
self.mutate(|doc| doc.set_chat_last_message(chat_id, &preview, Utc::now()))
Expand Down
Loading
Loading