Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90b9ab6670 | ||
|
|
e64328aa98 | ||
|
|
679151defc | ||
|
|
abdf7d3925 |
No files matched your search
@@ -3,6 +3,24 @@
|
||||
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
||||
until 1.0, minor versions may contain breaking changes.
|
||||
|
||||
## [v202611-00081] – 2026-11-27
|
||||
|
||||
### Added
|
||||
|
||||
- **Force a queued message.** While the agent works, a message you send is queued and delivered at the agent's next step. A further Enter on the empty input (terminal client and web UI) or Ctrl+Enter with text (web UI) now interrupts the running step and delivers the queued messages at once, so the model reads them immediately; the queue list in the web UI has a "Force now" button for the same. New endpoint `POST /api/sessions/{id}/queue/force`.
|
||||
- **Web UI:** Ctrl+J inserts a new line in the message field, like Shift+Enter (and like Ctrl+J / Shift+Enter in the terminal client).
|
||||
- **Terminal client:** messages waiting for the agent are shown above the input field (also for followed server chats).
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Terminal client: long input and long questions are cut off.** The input field now wraps at its width instead of hiding the part beyond the edge, and questions, their options and your own answer in the question dialog wrap as well.
|
||||
|
||||
## [v202611-00080] – 2026-11-21
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Factory page made the server stall (HTTP 504, one CPU core at 100 %).** The overview sums tokens and cost of up to 300 runs per request from the `usage` table, which had no index on `session_id`: every request scanned the table 900 times (about 4 s while holding the database lock). The index `usage_session` makes it take milliseconds (measured on the production database: 4.0 s → 8 ms).
|
||||
|
||||
## [v202611-00079] – 2026-11-21
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img alt="Version v202611-00079" src="https://img.shields.io/badge/version-v202611--00079-d69e2e?style=flat-square">
|
||||
<img alt="Version v202611-00081" src="https://img.shields.io/badge/version-v202611--00081-d69e2e?style=flat-square">
|
||||
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-689d6a?style=flat-square">
|
||||
<img alt="Rust backend" src="https://img.shields.io/badge/backend-Rust-b7410e?style=flat-square&logo=rust">
|
||||
<img alt="React PWA" src="https://img.shields.io/badge/frontend-React%20PWA-2d81ff?style=flat-square&logo=react">
|
||||
|
||||
+227
-18
@@ -15,7 +15,7 @@ use ratatui::Frame;
|
||||
use ratatui::layout::{Constraint, Layout, Rect};
|
||||
use ratatui::style::{Modifier, Style};
|
||||
use ratatui::text::{Line, Span};
|
||||
use ratatui::widgets::{Block, BorderType, Borders, Clear, Paragraph};
|
||||
use ratatui::widgets::{Block, BorderType, Borders, Clear, Paragraph, Wrap};
|
||||
use serde_json::Value;
|
||||
use std::collections::VecDeque;
|
||||
use std::path::PathBuf;
|
||||
@@ -115,6 +115,10 @@ pub struct App {
|
||||
busy_since: Instant,
|
||||
cancel: Option<CancellationToken>,
|
||||
queue: VecDeque<String>,
|
||||
/// The messages of a followed server chat that wait for its agent (from the server's queue).
|
||||
remote_queue: Vec<String>,
|
||||
/// The running turn is interrupted so that the queued messages are sent at once.
|
||||
forcing: bool,
|
||||
dialog: Dialog,
|
||||
session: LocalSession,
|
||||
effort: Option<String>,
|
||||
@@ -211,6 +215,28 @@ fn wrap(text: &str, width: usize) -> Vec<String> {
|
||||
out
|
||||
}
|
||||
|
||||
/// Break text into rows of at most `width` display columns exactly where they fill up (nothing is trimmed, so
|
||||
/// typed spaces stay visible); newlines start a new row.
|
||||
fn hard_wrap(text: &str, width: usize) -> Vec<String> {
|
||||
let width = width.max(1);
|
||||
let mut out = Vec::new();
|
||||
for raw in text.split('\n') {
|
||||
let mut line = String::new();
|
||||
let mut w = 0;
|
||||
for ch in raw.chars() {
|
||||
let cw = unicode_width::UnicodeWidthChar::width(ch).unwrap_or(0);
|
||||
if w + cw > width && !line.is_empty() {
|
||||
out.push(std::mem::take(&mut line));
|
||||
w = 0;
|
||||
}
|
||||
line.push(ch);
|
||||
w += cw;
|
||||
}
|
||||
out.push(line);
|
||||
}
|
||||
out
|
||||
}
|
||||
|
||||
/// Inline markdown: `code` and **bold**.
|
||||
fn inline(text: &str, th: &Theme, base: Style) -> Vec<Span<'static>> {
|
||||
let mut spans = Vec::new();
|
||||
@@ -340,6 +366,8 @@ impl App {
|
||||
busy_since: Instant::now(),
|
||||
cancel: None,
|
||||
queue: VecDeque::new(),
|
||||
remote_queue: Vec::new(),
|
||||
forcing: false,
|
||||
dialog: Dialog::None,
|
||||
todos: session.todos.clone(),
|
||||
context: session.context_tokens,
|
||||
@@ -408,7 +436,14 @@ impl App {
|
||||
self.busy_since = Instant::now();
|
||||
} else {
|
||||
self.cancel = None;
|
||||
if let Some(next) = self.queue.pop_front() {
|
||||
if self.forcing {
|
||||
// Interrupted on purpose: everything that waited goes out as one message.
|
||||
self.forcing = false;
|
||||
let all: Vec<String> = self.queue.drain(..).collect();
|
||||
if !all.is_empty() {
|
||||
self.send(all.join("\n\n"));
|
||||
}
|
||||
} else if let Some(next) = self.queue.pop_front() {
|
||||
self.send(next);
|
||||
}
|
||||
}
|
||||
@@ -488,6 +523,10 @@ impl App {
|
||||
let text = self.editor.take();
|
||||
let trimmed = text.trim().to_string();
|
||||
if trimmed.is_empty() && self.images.is_empty() {
|
||||
// A further Enter on the empty field delivers the waiting messages at once.
|
||||
if self.busy && self.has_queue() {
|
||||
self.force_queue();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if trimmed.starts_with('/') && self.slash(&trimmed) {
|
||||
@@ -506,6 +545,27 @@ impl App {
|
||||
}
|
||||
}
|
||||
|
||||
fn has_queue(&self) -> bool {
|
||||
if self.remote.is_some() { !self.remote_queue.is_empty() } else { !self.queue.is_empty() }
|
||||
}
|
||||
|
||||
/// Interrupt the running step and deliver the queued messages now (the model reads them at once).
|
||||
fn force_queue(&mut self) {
|
||||
if let (Some(server), Some(r)) = (self.env.server.clone(), &self.remote) {
|
||||
let id = r.id.clone();
|
||||
let (tx, rx) = oneshot::channel();
|
||||
tokio::spawn(async move {
|
||||
let _ = tx.send(remote::force_queue(&server, &id).await.map(|_| String::new()));
|
||||
});
|
||||
self.pending_note = Some(rx);
|
||||
self.status = t("forcing").into();
|
||||
} else if let Some(c) = &self.cancel {
|
||||
self.forcing = true;
|
||||
c.cancel();
|
||||
self.status = t("forcing").into();
|
||||
}
|
||||
}
|
||||
|
||||
/// Custom commands (server, project, built-in): "/name args" -> prompt.
|
||||
fn expand_command(&mut self, text: &str) -> Option<String> {
|
||||
let rest = text.strip_prefix('/')?;
|
||||
@@ -849,6 +909,7 @@ impl App {
|
||||
|
||||
fn leave_remote(&mut self) {
|
||||
if self.remote.take().is_some() {
|
||||
self.remote_queue.clear();
|
||||
self.items.clear();
|
||||
self.todos = Value::Null;
|
||||
self.busy = false;
|
||||
@@ -860,6 +921,10 @@ impl App {
|
||||
fn send_remote(&mut self, text: String) {
|
||||
let (Some(server), Some(r)) = (self.env.server.clone(), &self.remote) else { return };
|
||||
let id = r.id.clone();
|
||||
if self.busy {
|
||||
self.remote_queue.push(text.clone());
|
||||
self.status = format!("{} ({})", t("queued"), self.remote_queue.len());
|
||||
}
|
||||
let (tx, rx) = oneshot::channel();
|
||||
tokio::spawn(async move {
|
||||
let _ = tx.send(remote::prompt(&server, &id, &text).await.map(|_| String::new()));
|
||||
@@ -932,6 +997,7 @@ impl App {
|
||||
self.busy = false;
|
||||
self.dialog = Dialog::None;
|
||||
self.remote = Some(r);
|
||||
self.remote_queue.clear();
|
||||
self.pending_snapshot = None;
|
||||
}
|
||||
Err(e) => self.items.push(Item::Error(format!("{e:#}"))),
|
||||
@@ -962,6 +1028,7 @@ impl App {
|
||||
let head = self.items.first().filter(|i| matches!(i, Item::Info(s) if s.starts_with("server chat:"))).map(|i| if let Item::Info(s) = i { s.clone() } else { String::new() });
|
||||
self.items = head.map(Item::Info).into_iter().chain(items).collect();
|
||||
self.busy = snap.busy;
|
||||
self.remote_queue = snap.queue.clone();
|
||||
if snap.busy && !was_busy {
|
||||
self.busy_since = Instant::now();
|
||||
}
|
||||
@@ -1700,10 +1767,37 @@ impl App {
|
||||
let th = theme::get();
|
||||
let area = f.area();
|
||||
f.render_widget(Block::default().style(Style::default().bg(th.bg0).fg(th.fg1)), area);
|
||||
let input_h = (self.editor.lines.len() as u16).clamp(1, 8) + 2;
|
||||
// The input wraps at the width of the field (one column stays free for the cursor).
|
||||
let wrap_w = (area.width.saturating_sub(3) as usize).max(1);
|
||||
let layout = self.editor.layout(wrap_w);
|
||||
let input_h = (layout.len() as u16).clamp(1, 8) + 2;
|
||||
// Messages that wait for the agent are shown above the input.
|
||||
let queued: Vec<String> = if self.remote.is_some() { self.remote_queue.clone() } else { self.queue.iter().cloned().collect() };
|
||||
let mut queue_lines: Vec<Line> = Vec::new();
|
||||
if !queued.is_empty() {
|
||||
let w = (area.width as usize).saturating_sub(6).max(10);
|
||||
let mut more = 0;
|
||||
for (n, msg) in queued.iter().enumerate() {
|
||||
let rows = wrap(msg, w);
|
||||
if queue_lines.len() + rows.len() > 5 {
|
||||
more = queued.len() - n;
|
||||
break;
|
||||
}
|
||||
for (r, row) in rows.into_iter().enumerate() {
|
||||
queue_lines.push(Line::from(vec![Span::styled(if r == 0 { " ↳ " } else { " " }, Style::default().fg(th.accent2)), Span::styled(row, Style::default().fg(th.fg2))]));
|
||||
}
|
||||
}
|
||||
if more > 0 {
|
||||
queue_lines.push(Line::from(Span::styled(format!(" … +{more}"), Style::default().fg(th.muted))));
|
||||
}
|
||||
if self.busy {
|
||||
queue_lines.push(Line::from(Span::styled(format!(" {}", t("force_hint")), Style::default().fg(th.muted))));
|
||||
}
|
||||
}
|
||||
let queue_h = queue_lines.len() as u16;
|
||||
let todo_items: Vec<&Value> = self.todos.as_array().map(|a| a.iter().collect()).unwrap_or_default();
|
||||
let todo_h = if todo_items.iter().any(|t| t["status"] != "completed") { (todo_items.len() as u16).min(6) } else { 0 };
|
||||
let [head, hist, todos, act, input, status] = Layout::vertical([Constraint::Length(1), Constraint::Min(3), Constraint::Length(todo_h), Constraint::Length(1), Constraint::Length(input_h), Constraint::Length(1)]).areas(area);
|
||||
let [head, hist, todos, act, queue_area, input, status] = Layout::vertical([Constraint::Length(1), Constraint::Min(3), Constraint::Length(todo_h), Constraint::Length(1), Constraint::Length(queue_h), Constraint::Length(input_h), Constraint::Length(1)]).areas(area);
|
||||
|
||||
// Header.
|
||||
let cwd = self.session.cwd.replace(&crate::conf::home().display().to_string(), "~");
|
||||
@@ -1769,12 +1863,15 @@ impl App {
|
||||
Span::styled(format!(" {} ", SPINNER[self.tick % SPINNER.len()]), Style::default().fg(th.accent2)),
|
||||
Span::styled(format!("{}…", t("working")), Style::default().fg(th.accent2)),
|
||||
Span::styled(format!(" ({secs}s · ~{} tokens) · {}", self.step_chars / 4, t("interrupt")), Style::default().fg(th.muted)),
|
||||
Span::styled(if self.queue.is_empty() { String::new() } else { format!(" · {} {}", self.queue.len(), t("queued")) }, Style::default().fg(th.muted)),
|
||||
Span::styled({ let n = if self.remote.is_some() { self.remote_queue.len() } else { self.queue.len() }; if n == 0 { String::new() } else { format!(" · {} {}", n, t("queued")) } }, Style::default().fg(th.muted)),
|
||||
])
|
||||
} else {
|
||||
Line::from(Span::styled(format!(" {}", self.status), Style::default().fg(th.muted)))
|
||||
};
|
||||
f.render_widget(Paragraph::new(activity), act);
|
||||
if queue_h > 0 {
|
||||
f.render_widget(Paragraph::new(queue_lines), queue_area);
|
||||
}
|
||||
|
||||
// Input.
|
||||
let mode_col = match self.session.mode.as_str() {
|
||||
@@ -1793,16 +1890,17 @@ impl App {
|
||||
let inner = block.inner(input);
|
||||
f.render_widget(block, input);
|
||||
let visible = inner.height as usize;
|
||||
let first = self.editor.row.saturating_sub(visible.saturating_sub(1));
|
||||
let text: Vec<Line> = if self.editor.is_empty() {
|
||||
vec![Line::from(Span::styled(if self.busy { t("busy_placeholder") } else { t("placeholder") }, Style::default().fg(th.muted)))]
|
||||
let (crow, ccol) = self.editor.cursor_in(&layout);
|
||||
let first = crow.saturating_sub(visible.saturating_sub(1));
|
||||
if self.editor.is_empty() {
|
||||
let hint = Line::from(Span::styled(if self.busy { t("busy_placeholder") } else { t("placeholder") }, Style::default().fg(th.muted)));
|
||||
f.render_widget(Paragraph::new(hint).wrap(Wrap { trim: false }), inner);
|
||||
} else {
|
||||
self.editor.lines[first..].iter().take(visible).map(|l| Line::from(Span::styled(l.clone(), Style::default().fg(th.fg0)))).collect()
|
||||
};
|
||||
let scroll_x = self.editor.cursor_x().saturating_sub(inner.width.saturating_sub(1) as usize) as u16;
|
||||
f.render_widget(Paragraph::new(text).scroll((0, scroll_x)), inner);
|
||||
let text: Vec<Line> = layout[first..].iter().take(visible).map(|r| Line::from(Span::styled(self.editor.row_text(*r), Style::default().fg(th.fg0)))).collect();
|
||||
f.render_widget(Paragraph::new(text), inner);
|
||||
}
|
||||
if matches!(self.dialog, Dialog::None) {
|
||||
f.set_cursor_position((inner.x + self.editor.cursor_x() as u16 - scroll_x, inner.y + (self.editor.row - first) as u16));
|
||||
f.set_cursor_position((inner.x + (ccol as u16).min(inner.width.saturating_sub(1)), inner.y + (crow - first) as u16));
|
||||
}
|
||||
|
||||
// Status line.
|
||||
@@ -1882,14 +1980,39 @@ impl App {
|
||||
}
|
||||
Dialog::Question { questions, idx, sel, custom, .. } => {
|
||||
let q = &questions[*idx];
|
||||
let mut lines = vec![Line::from(Span::styled(q.question.clone(), Style::default().fg(th.fg0).add_modifier(Modifier::BOLD))), Line::default()];
|
||||
// Everything wraps at the width of the box (it is 90 columns wide, less on small terminals).
|
||||
let w = (90.min(area.width.saturating_sub(4)) as usize).saturating_sub(2).max(10);
|
||||
let mut lines: Vec<Line> = wrap(&q.question, w).into_iter().map(|l| Line::from(Span::styled(l, Style::default().fg(th.fg0).add_modifier(Modifier::BOLD)))).collect();
|
||||
lines.push(Line::default());
|
||||
for (i, o) in q.options.iter().enumerate() {
|
||||
let st = if i == *sel && custom.is_empty() { Style::default().fg(th.on_accent).bg(th.accent) } else { Style::default().fg(th.fg1) };
|
||||
lines.push(Line::from(vec![Span::styled(format!(" {}. {} ", i + 1, o.label), st), Span::styled(format!(" {}", o.description), Style::default().fg(th.muted))]));
|
||||
let on = i == *sel && custom.is_empty();
|
||||
let prefix = format!(" {}. {} ", i + 1, o.label);
|
||||
let full = if o.description.is_empty() { prefix.clone() } else { format!("{prefix} {}", o.description) };
|
||||
for (r, row) in wrap(&full, w.saturating_sub(4)).into_iter().enumerate() {
|
||||
let row = if r == 0 { row } else { format!(" {row}") };
|
||||
if on {
|
||||
lines.push(Line::from(Span::styled(row, Style::default().fg(th.on_accent).bg(th.accent))));
|
||||
} else if r == 0 {
|
||||
let cut = row.char_indices().nth(prefix.chars().count()).map(|(b, _)| b).unwrap_or(row.len());
|
||||
lines.push(Line::from(vec![Span::styled(row[..cut].to_string(), Style::default().fg(th.fg1)), Span::styled(row[cut..].to_string(), Style::default().fg(th.muted))]));
|
||||
} else {
|
||||
lines.push(Line::from(Span::styled(row, Style::default().fg(th.muted))));
|
||||
}
|
||||
}
|
||||
}
|
||||
lines.push(Line::default());
|
||||
lines.push(Line::from(Span::styled(format!("> {custom}_"), Style::default().fg(th.fg0))));
|
||||
lines.push(Line::from(Span::styled(t("question_keys"), Style::default().fg(th.muted))));
|
||||
// The own answer: wrapped as typed; only its last rows are shown when it gets long.
|
||||
let typed = hard_wrap(&format!("> {custom}_"), w);
|
||||
let skip = typed.len().saturating_sub(6);
|
||||
if skip > 0 {
|
||||
lines.push(Line::from(Span::styled(" …", Style::default().fg(th.muted))));
|
||||
}
|
||||
for row in typed.into_iter().skip(skip) {
|
||||
lines.push(Line::from(Span::styled(row, Style::default().fg(th.fg0))));
|
||||
}
|
||||
for row in wrap(t("question_keys"), w) {
|
||||
lines.push(Line::from(Span::styled(row, Style::default().fg(th.muted))));
|
||||
}
|
||||
let title = format!("{} {}/{}", t("question"), idx + 1, questions.len());
|
||||
let inner = boxed(f, &title, 90, lines.len() as u16 + 2, th.blue);
|
||||
f.render_widget(Paragraph::new(lines), inner);
|
||||
@@ -2044,3 +2167,89 @@ impl App {
|
||||
self.status = s;
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod wrap_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn hard_wrap_keeps_every_character() {
|
||||
let rows = hard_wrap("abc def ghi", 5);
|
||||
assert_eq!(rows.join(""), "abc def ghi");
|
||||
assert!(rows.iter().all(|r| UnicodeWidthStr::width(r.as_str()) <= 5));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hard_wrap_counts_wide_characters() {
|
||||
let rows = hard_wrap("日本語日本語", 4);
|
||||
assert_eq!(rows, vec!["日本", "語日", "本語"]);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod render_tests {
|
||||
use super::*;
|
||||
use crate::agent::Env;
|
||||
use ratatui::Terminal;
|
||||
use ratatui::backend::TestBackend;
|
||||
|
||||
fn app() -> App {
|
||||
let cfg: crate::conf::Config = serde_json::from_str("{}").expect("empty config");
|
||||
let env = Env {
|
||||
cfg,
|
||||
server: None,
|
||||
server_cfg: None,
|
||||
catalog: Default::default(),
|
||||
modes: crate::agent::builtin_modes(),
|
||||
permissions: Default::default(),
|
||||
base_prompt: String::new(),
|
||||
auto_prompt: String::new(),
|
||||
remote_tools: Vec::new(),
|
||||
server_skills: Vec::new(),
|
||||
memory: String::new(),
|
||||
};
|
||||
let session = LocalSession { id: "t".into(), title: String::new(), cwd: "/tmp".into(), model: String::new(), mode: "build".into(), permission_mode: "default".into(), created_at: 0, updated_at: 0, messages: Vec::new(), usage: Default::default(), cost: 0.0, todos: Value::Null, context_tokens: 0 };
|
||||
let (tx, _rx) = mpsc::unbounded_channel();
|
||||
App::new(Arc::new(env), session, tx)
|
||||
}
|
||||
|
||||
fn screen(app: &mut App, w: u16, h: u16) -> String {
|
||||
let mut term = Terminal::new(TestBackend::new(w, h)).unwrap();
|
||||
term.draw(|f| app.draw(f)).unwrap();
|
||||
let buf = term.backend().buffer().clone();
|
||||
(0..h).map(|y| (0..w).map(|x| buf[(x, y)].symbol().to_string()).collect::<String>()).collect::<Vec<_>>().join("\n")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn queued_messages_show_above_the_input_and_wrap() {
|
||||
let mut a = app();
|
||||
a.busy = true;
|
||||
a.queue.push_back("Das ist eine lange wartende Nachricht, die ueber mehrere Zeilen umbrechen muss weil sie so lang ist".into());
|
||||
a.queue.push_back("zweite".into());
|
||||
let s = screen(&mut a, 50, 20);
|
||||
assert!(s.contains("↳ Das ist eine lange"), "{s}");
|
||||
assert!(s.contains("↳ zweite"), "{s}");
|
||||
assert!(s.contains("sofort zustellen") || s.contains("deliver now"), "{s}");
|
||||
let q = s.lines().position(|l| l.contains("↳ Das")).unwrap();
|
||||
let input = s.lines().position(|l| l.contains('╭') && l.contains("build")).unwrap();
|
||||
assert!(q < input, "the queue is above the input\n{s}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn long_question_and_options_wrap_instead_of_being_cut() {
|
||||
let mut a = app();
|
||||
let (tx, _rx) = oneshot::channel();
|
||||
a.dialog = Dialog::Question {
|
||||
questions: vec![Question { question: "Soll der Builder das Limit auf sechs Mebibyte anheben oder lieber einzelne Grammatiken weglassen, obwohl die Spec das verbietet?".into(), header: String::new(), options: vec![codecraft_core::types::QuestionOption { label: "Limit anheben".into(), description: "Das Archiv bleibt vollstaendig und waechst auf knapp fuenf Mebibyte an".into() }], multi_select: false }],
|
||||
idx: 0,
|
||||
sel: 0,
|
||||
custom: "eine sehr lange eigene Antwort die in dem Feld nicht mehr in eine Zeile passt und deshalb umbrechen muss".into(),
|
||||
answers: Default::default(),
|
||||
reply: Some(tx),
|
||||
};
|
||||
let s = screen(&mut a, 60, 30);
|
||||
for part in ["Mebibyte anheben", "weglassen", "knapp", "Antwort", "umbrechen muss"] {
|
||||
assert!(s.contains(part), "missing {part}\n{s}");
|
||||
}
|
||||
}
|
||||
}
|
||||
+99
-5
@@ -1,6 +1,6 @@
|
||||
//! Multi-line input field with history.
|
||||
|
||||
use unicode_width::UnicodeWidthStr;
|
||||
use unicode_width::UnicodeWidthChar;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Editor {
|
||||
@@ -211,9 +211,103 @@ impl Editor {
|
||||
self.col = start + with.chars().count();
|
||||
}
|
||||
|
||||
/// Cursor position in display columns (for the terminal cursor).
|
||||
pub fn cursor_x(&self) -> usize {
|
||||
let line = &self.lines[self.row];
|
||||
UnicodeWidthStr::width(&line[..byte_idx(line, self.col)])
|
||||
/// The text as it is shown at `width` columns: every logical line is broken into rows, preferably after a
|
||||
/// space, otherwise inside a long word. Each row is (line index, first char, end char).
|
||||
pub fn layout(&self, width: usize) -> Vec<(usize, usize, usize)> {
|
||||
let width = width.max(1);
|
||||
let mut rows = Vec::new();
|
||||
for (i, line) in self.lines.iter().enumerate() {
|
||||
let chars: Vec<char> = line.chars().collect();
|
||||
if chars.is_empty() {
|
||||
rows.push((i, 0, 0));
|
||||
continue;
|
||||
}
|
||||
let mut start = 0;
|
||||
while start < chars.len() {
|
||||
let mut w = 0;
|
||||
let mut end = start;
|
||||
let mut last_space = None;
|
||||
while end < chars.len() {
|
||||
let cw = UnicodeWidthChar::width(chars[end]).unwrap_or(0);
|
||||
if w + cw > width && end > start {
|
||||
break;
|
||||
}
|
||||
w += cw;
|
||||
end += 1;
|
||||
if chars[end - 1] == ' ' {
|
||||
last_space = Some(end);
|
||||
}
|
||||
}
|
||||
if end < chars.len() {
|
||||
if let Some(sp) = last_space.filter(|sp| *sp > start) {
|
||||
end = sp;
|
||||
}
|
||||
}
|
||||
rows.push((i, start, end));
|
||||
start = end;
|
||||
}
|
||||
}
|
||||
rows
|
||||
}
|
||||
|
||||
/// The text of one row of `layout`.
|
||||
pub fn row_text(&self, (line, a, b): (usize, usize, usize)) -> String {
|
||||
self.lines[line].chars().skip(a).take(b - a).collect()
|
||||
}
|
||||
|
||||
/// Cursor in the wrapped view: (row index in `layout`, display column).
|
||||
pub fn cursor_in(&self, layout: &[(usize, usize, usize)]) -> (usize, usize) {
|
||||
for (n, &(line, a, b)) in layout.iter().enumerate() {
|
||||
let last = layout.get(n + 1).is_none_or(|next| next.0 != line);
|
||||
if line == self.row && self.col >= a && (self.col < b || (last && self.col <= b)) {
|
||||
let w: usize = self.lines[line].chars().skip(a).take(self.col - a).map(|c| UnicodeWidthChar::width(c).unwrap_or(0)).sum();
|
||||
return (n, w);
|
||||
}
|
||||
}
|
||||
(layout.len().saturating_sub(1), 0)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
fn editor(text: &str) -> Editor {
|
||||
let mut e = Editor { lines: vec![String::new()], ..Default::default() };
|
||||
e.set(text);
|
||||
e
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn long_line_wraps_at_spaces() {
|
||||
let e = editor("aaa bbb ccc ddd");
|
||||
let rows: Vec<String> = e.layout(8).into_iter().map(|r| e.row_text(r)).collect();
|
||||
assert_eq!(rows, vec!["aaa bbb ", "ccc ddd"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn long_word_breaks_inside() {
|
||||
let e = editor("abcdefghij");
|
||||
let rows: Vec<String> = e.layout(4).into_iter().map(|r| e.row_text(r)).collect();
|
||||
assert_eq!(rows, vec!["abcd", "efgh", "ij"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn empty_lines_keep_a_row_and_nothing_is_lost() {
|
||||
let e = editor("one\n\ntwo words here");
|
||||
let l = e.layout(6);
|
||||
let joined: String = l.iter().map(|r| e.row_text(*r)).collect::<Vec<_>>().join("|");
|
||||
assert_eq!(joined, "one||two |words |here");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cursor_follows_the_wrap() {
|
||||
let mut e = editor("aaa bbb ccc ddd");
|
||||
let l = e.layout(8);
|
||||
assert_eq!(e.cursor_in(&l), (1, 7)); // end of the text, second row
|
||||
e.col = 8; // before "ccc"
|
||||
assert_eq!(e.cursor_in(&l), (1, 0));
|
||||
e.col = 3;
|
||||
assert_eq!(e.cursor_in(&l), (0, 3));
|
||||
}
|
||||
}
|
||||
+3
-1
@@ -14,7 +14,7 @@ pub fn system_lang() -> String {
|
||||
|
||||
/// (key, English, German)
|
||||
const TEXTS: &[(&str, &str, &str)] = &[
|
||||
("placeholder", "Message… (/ commands, @ files, Shift+Enter new line)", "Nachricht… (/ Befehle, @ Dateien, Shift+Enter neue Zeile)"),
|
||||
("placeholder", "Message… (/ commands, @ files, Shift+Enter or Ctrl+J new line)", "Nachricht… (/ Befehle, @ Dateien, Shift+Enter oder Strg+J neue Zeile)"),
|
||||
("busy_placeholder", "Message is queued and sent after this turn…", "Nachricht wird nach diesem Schritt gesendet…"),
|
||||
("permission", "Permission required", "Freigabe erforderlich"),
|
||||
("perm_keys", "[y] allow once [a] always in this session [n] reject [f] reject with feedback", "[y] einmal erlauben [a] immer in dieser Session [n] ablehnen [f] ablehnen mit Hinweis"),
|
||||
@@ -36,6 +36,8 @@ const TEXTS: &[(&str, &str, &str)] = &[
|
||||
("choose_theme", "Choose a theme", "Theme wählen"),
|
||||
("filter", "type to filter", "tippen zum Filtern"),
|
||||
("queued", "queued", "in der Warteschlange"),
|
||||
("force_hint", "Enter on the empty field: deliver now (interrupts the running step)", "Enter im leeren Feld: sofort zustellen (unterbricht den laufenden Schritt)"),
|
||||
("forcing", "interrupting – the queued message is sent now", "unterbreche – die Nachricht wird jetzt gesendet"),
|
||||
("welcome", "Welcome to CodeCraft", "Willkommen bei CodeCraft"),
|
||||
("setup_title", "Set up CodeCraft", "CodeCraft einrichten"),
|
||||
("setup_intro", "Where should the models come from? You can add more later with /setup.", "Woher sollen die Modelle kommen? Weitere kannst du später mit /setup hinzufügen."),
|
||||
|
||||
+17
-1
@@ -32,6 +32,8 @@ pub struct Snapshot {
|
||||
pub todos: Value,
|
||||
/// Open permission and question requests of this chat (and its subagents).
|
||||
pub pending: Vec<Value>,
|
||||
/// Messages waiting for the agent (text of each).
|
||||
pub queue: Vec<String>,
|
||||
}
|
||||
|
||||
fn short(s: &str, n: usize) -> String {
|
||||
@@ -80,7 +82,16 @@ pub async fn snapshot(server: &Server, id: &str) -> Result<Snapshot> {
|
||||
.into_iter()
|
||||
.filter(|e| e["session_id"].as_str() == Some(id) || e["root_session_id"].as_str() == Some(id))
|
||||
.collect();
|
||||
Ok(Snapshot { messages, busy: s["busy"].as_bool().unwrap_or(false), title: s["session"]["title"].as_str().unwrap_or("").to_string(), todos: s["session"]["todos"].clone(), pending })
|
||||
let queue = s["queue"]
|
||||
.as_array()
|
||||
.map(|a| {
|
||||
a.iter()
|
||||
.filter(|i| i["source"].as_str() != Some("background"))
|
||||
.map(|i| i["parts"].as_array().map(|p| p.iter().filter_map(|x| x["text"].as_str()).collect::<Vec<_>>().join(" ")).unwrap_or_default())
|
||||
.collect()
|
||||
})
|
||||
.unwrap_or_default();
|
||||
Ok(Snapshot { messages, busy: s["busy"].as_bool().unwrap_or(false), title: s["session"]["title"].as_str().unwrap_or("").to_string(), todos: s["session"]["todos"].clone(), pending, queue })
|
||||
}
|
||||
|
||||
pub async fn open(server: &Server, id: &str) -> Result<Remote> {
|
||||
@@ -118,6 +129,11 @@ pub async fn abort(server: &Server, id: &str) -> Result<()> {
|
||||
server.post(&format!("/sessions/{id}/abort"), json!({})).await.map(|_| ())
|
||||
}
|
||||
|
||||
/// Interrupt the running step and deliver the queued messages at once.
|
||||
pub async fn force_queue(server: &Server, id: &str) -> Result<()> {
|
||||
server.post(&format!("/sessions/{id}/queue/force"), json!({})).await.map(|_| ())
|
||||
}
|
||||
|
||||
pub async fn compact(server: &Server, id: &str) -> Result<()> {
|
||||
server.post(&format!("/sessions/{id}/compact"), json!({})).await.map(|_| ())
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ pub fn router(app: AppState) -> Router {
|
||||
.route("/sessions/{id}/shares", get(get_shares).put(put_shares))
|
||||
.route("/sessions/{id}/queue", get(get_queue))
|
||||
.route("/sessions/{id}/queue/flush", post(flush_queue))
|
||||
.route("/sessions/{id}/queue/force", post(force_queue))
|
||||
.route("/sessions/{id}/queue/{item}", delete(delete_queue_item))
|
||||
.route("/permissions/{id}", post(reply_permission))
|
||||
.route("/permissions/{id}/explain", post(explain_permission))
|
||||
@@ -1359,6 +1360,12 @@ async fn flush_queue(Extension(user): Extension<User>, State(app): State<AppStat
|
||||
Ok(Json(json!({"started": runner::flush_queue(app.clone(), &id)?})))
|
||||
}
|
||||
|
||||
/// Interrupt the running step and deliver the queued messages at once.
|
||||
async fn force_queue(Extension(user): Extension<User>, State(app): State<AppState>, Path(id): Path<String>) -> ApiResult {
|
||||
writable(&app, &user, &id)?;
|
||||
Ok(Json(json!({"forced": runner::force_queue(app.clone(), &id)?})))
|
||||
}
|
||||
|
||||
pub(crate) async fn do_compact(app: AppState, id: String) {
|
||||
let cancel = tokio_util::sync::CancellationToken::new();
|
||||
app.with_runtime(&id, |r| r.cancel = Some(cancel.clone()));
|
||||
|
||||
@@ -45,6 +45,9 @@ pub struct Runtime {
|
||||
pub step: Option<Value>,
|
||||
/// Reasoning effort chosen for the current turn (overrides the model's default).
|
||||
pub effort: Option<String>,
|
||||
/// The user interrupted the turn to deliver the queued messages at once: they start the next turn
|
||||
/// even though the run was cancelled.
|
||||
pub force_queue: bool,
|
||||
}
|
||||
|
||||
pub struct App {
|
||||
|
||||
+21
-1
@@ -112,7 +112,8 @@ pub fn submit(app: Arc<App>, session_id: String, parts: Vec<Part>, source: &str)
|
||||
let leftover = app.with_runtime(&session_id, |r| {
|
||||
r.cancel = None;
|
||||
r.effort = None;
|
||||
if cancel.is_cancelled() { Vec::new() } else { take_queue(&app, &session_id) }
|
||||
let forced = std::mem::take(&mut r.force_queue);
|
||||
if cancel.is_cancelled() && !forced { Vec::new() } else { take_queue(&app, &session_id) }
|
||||
});
|
||||
app.emit(Event::SessionStatus { session_id: session_id.clone(), busy: false });
|
||||
if leftover.is_empty() && !cancel.is_cancelled() {
|
||||
@@ -139,6 +140,25 @@ pub fn flush_queue(app: Arc<App>, session_id: &str) -> Result<bool> {
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
/// Deliver the queued messages now: the running step is interrupted and the messages start the next turn
|
||||
/// at once (instead of waiting for the agent's next step). Without a running turn this is `flush_queue`.
|
||||
/// Returns false when nothing is queued.
|
||||
pub fn force_queue(app: Arc<App>, session_id: &str) -> Result<bool> {
|
||||
if app.store.queue_list(session_id).unwrap_or_default().is_empty() {
|
||||
return Ok(false);
|
||||
}
|
||||
if !app.is_busy(session_id) {
|
||||
return flush_queue(app, session_id);
|
||||
}
|
||||
app.with_runtime(session_id, |r| {
|
||||
if let Some(c) = &r.cancel {
|
||||
r.force_queue = true;
|
||||
c.cancel();
|
||||
}
|
||||
});
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
pub fn abort(app: &App, session_id: &str) {
|
||||
app.with_runtime(session_id, |r| {
|
||||
if let Some(c) = &r.cancel {
|
||||
|
||||
@@ -51,6 +51,7 @@ impl Store {
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS usage_ts ON usage(ts);
|
||||
CREATE INDEX IF NOT EXISTS usage_root ON usage(root_session_id);
|
||||
CREATE INDEX IF NOT EXISTS usage_session ON usage(session_id);
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id TEXT PRIMARY KEY,
|
||||
username TEXT NOT NULL UNIQUE COLLATE NOCASE,
|
||||
|
||||
@@ -5,6 +5,8 @@ import { uploadBatch } from "../uploads";
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import { useAgents, useFetch, useModels } from "../hooks";
|
||||
import { useT, type Key } from "../i18n";
|
||||
import { useStore } from "../store";
|
||||
import { post } from "../api";
|
||||
import type { ImageData, Session } from "../types";
|
||||
import { ModelSelect } from "./ModelSelect";
|
||||
import { EffortSelect } from "./Regenerate";
|
||||
@@ -55,7 +57,7 @@ export function Composer({
|
||||
busy: boolean;
|
||||
text: string;
|
||||
setText: (s: string) => void;
|
||||
onSend: (text: string, images: ImageData[], effort?: string) => void;
|
||||
onSend: (text: string, images: ImageData[], effort?: string) => void | Promise<void>;
|
||||
onAbort: () => void;
|
||||
onUpdate: (patch: Partial<Session>) => void;
|
||||
}) {
|
||||
@@ -145,11 +147,20 @@ export function Composer({
|
||||
return [...mine, ...cmds].slice(0, 12);
|
||||
}, [text, cmdData, snippets, t, mention, mentionHits]);
|
||||
|
||||
const send = () => {
|
||||
// Messages waiting for the agent: a further Enter on the empty field (or Ctrl+Enter with text) delivers them at once.
|
||||
const queued = useStore((s) => (s.queue[session.id] ?? []).length);
|
||||
const force = () => post(`/sessions/${session.id}/queue/force`).catch((e) => toast(e.message));
|
||||
|
||||
const send = (thenForce = false) => {
|
||||
if (!text.trim() && images.length === 0 && files.length === 0 && busy && queued > 0) {
|
||||
void force();
|
||||
return;
|
||||
}
|
||||
if ((!text.trim() && images.length === 0 && files.length === 0) || uploading > 0) return;
|
||||
// Files are referenced by path; the agent reads them with its tools.
|
||||
const refs = files.length ? `\n\n${t("composer.attachedFiles")}\n${files.map((f) => `- ${f.path} (${formatSize(f.size)})`).join("\n")}` : "";
|
||||
onSend(`${text}${refs}`, images, effort);
|
||||
const sent = onSend(`${text}${refs}`, images, effort);
|
||||
if (thenForce && busy) void Promise.resolve(sent).then(force);
|
||||
setEffort("");
|
||||
setImages([]);
|
||||
setFiles([]);
|
||||
@@ -174,11 +185,22 @@ export function Composer({
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Ctrl+J inserts a new line (like Shift+Enter, and like Ctrl+J / Shift+Enter in the terminal client).
|
||||
if (e.key.toLowerCase() === "j" && e.ctrlKey && !e.altKey && !e.metaKey && !e.nativeEvent.isComposing) {
|
||||
e.preventDefault();
|
||||
const el = e.currentTarget as HTMLTextAreaElement;
|
||||
const a = el.selectionStart ?? text.length;
|
||||
const b = el.selectionEnd ?? a;
|
||||
setText(`${text.slice(0, a)}\n${text.slice(b)}`);
|
||||
requestAnimationFrame(() => ref.current?.setSelectionRange(a + 1, a + 1));
|
||||
return;
|
||||
}
|
||||
// Enter sends on desktop; on touch devices Enter inserts a newline.
|
||||
const touch = matchMedia("(pointer: coarse)").matches;
|
||||
if (e.key === "Enter" && !e.shiftKey && !touch && !e.nativeEvent.isComposing) {
|
||||
e.preventDefault();
|
||||
send();
|
||||
// Ctrl/Cmd+Enter while the agent works: queue the message and interrupt the step so it is read at once.
|
||||
send(e.ctrlKey || e.metaKey);
|
||||
}
|
||||
if (e.key === "Escape" && busy) onAbort();
|
||||
};
|
||||
@@ -400,7 +422,7 @@ export function Composer({
|
||||
<Icon name="stop" /> {t("composer.stop")}
|
||||
</button>
|
||||
)}
|
||||
<button className="primary" onClick={send} disabled={uploading > 0 || (!text.trim() && images.length === 0 && files.length === 0)}>
|
||||
<button className="primary" onClick={() => send()} disabled={uploading > 0 || (!text.trim() && images.length === 0 && files.length === 0)}>
|
||||
{busy ? t("composer.queue") : t("composer.send")}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -17,11 +17,13 @@ export function QueueList({ sessionId, busy }: { sessionId: string; busy: boolea
|
||||
<div className="queue">
|
||||
<div className="queue-head">
|
||||
<span>{busy ? t("queue.pending", { n: items.length }) : t("queue.stopped", { n: items.length })}</span>
|
||||
{!busy && (
|
||||
<button className="small primary" onClick={() => post(`/sessions/${sessionId}/queue/flush`).catch((e) => toast(e.message))}>
|
||||
{t("queue.sendNow")}
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
className="small primary"
|
||||
title={busy ? t("queue.forceHint") : undefined}
|
||||
onClick={() => post(`/sessions/${sessionId}/queue/force`).catch((e) => toast(e.message))}
|
||||
>
|
||||
{busy ? t("queue.force") : t("queue.sendNow")}
|
||||
</button>
|
||||
</div>
|
||||
{items.map((it) => {
|
||||
const text = it.parts.map((p) => (p.type === "text" ? p.text : "")).join(" ").trim();
|
||||
|
||||
+5
-3
@@ -69,9 +69,11 @@ export const de: Messages = {
|
||||
"settings.pricesFetched": "Preise für {n} Modelle aktualisiert – zum Übernehmen speichern.",
|
||||
"stats.perMillion": "pro 1 Mio. Tok.",
|
||||
"stats.perMillionHint": "Effektive Kosten pro Million Tokens (Input inkl. Cache + Output)",
|
||||
"queue.pending": "{n} Nachricht(en) in der Warteschlange – werden beim nächsten Schritt übergeben",
|
||||
"queue.pending": "{n} Nachricht(en) in der Warteschlange – werden beim nächsten Schritt übergeben (Enter im leeren Feld erzwingt sofort)",
|
||||
"queue.stopped": "{n} Nachricht(en) in der Warteschlange",
|
||||
"queue.sendNow": "Jetzt senden",
|
||||
"queue.force": "Jetzt erzwingen",
|
||||
"queue.forceHint": "Unterbricht den laufenden Schritt, das Modell liest die Nachricht sofort (Enter im leeren Feld oder Strg+Enter)",
|
||||
"queue.remove": "Aus der Warteschlange entfernen",
|
||||
"queue.backgroundResult": "Ergebnis einer Hintergrundaufgabe",
|
||||
"permissionMode.auto": "Automatisch (fragt einmal, Sicheres läuft)",
|
||||
@@ -819,8 +821,8 @@ export const de: Messages = {
|
||||
"chat.delete": "Session löschen",
|
||||
"chat.deleteConfirm": "Diese Session inklusive Subagenten löschen? Die Statistik bleibt erhalten.",
|
||||
|
||||
"composer.placeholder": "Nachricht… (/ für Befehle, @ für Dateien, Dateien anhängen oder einfügen)",
|
||||
"composer.placeholderBusy": "Nachricht wird eingereiht und beim nächsten Schritt gesendet…",
|
||||
"composer.placeholder": "Nachricht… (/ für Befehle, @ für Dateien, Shift+Enter oder Strg+J für neue Zeile)",
|
||||
"composer.placeholderBusy": "Nachricht wird eingereiht und beim nächsten Schritt gesendet… (Strg+Enter sendet sofort)",
|
||||
"composer.send": "Senden",
|
||||
"composer.queue": "Einreihen",
|
||||
"composer.stop": "Stopp",
|
||||
|
||||
+5
-3
@@ -68,9 +68,11 @@ export const en = {
|
||||
"settings.pricesFetched": "Prices updated for {n} models – save to keep them.",
|
||||
"stats.perMillion": "per 1M tok",
|
||||
"stats.perMillionHint": "Effective cost per million tokens (input incl. cache + output)",
|
||||
"queue.pending": "{n} message(s) waiting – delivered at the agent's next step",
|
||||
"queue.pending": "{n} message(s) waiting – delivered at the agent's next step (Enter on an empty field forces it now)",
|
||||
"queue.stopped": "{n} message(s) waiting",
|
||||
"queue.sendNow": "Send now",
|
||||
"queue.force": "Force now",
|
||||
"queue.forceHint": "Interrupts the running step so the model reads the message at once (Enter on an empty field or Ctrl+Enter)",
|
||||
"queue.remove": "Remove from queue",
|
||||
"queue.backgroundResult": "Result of a background task",
|
||||
"permissionMode.auto": "Automatic (asks once, safe steps run)",
|
||||
@@ -818,8 +820,8 @@ export const en = {
|
||||
"chat.delete": "Delete session",
|
||||
"chat.deleteConfirm": "Delete this session including its subagents? Statistics are kept.",
|
||||
|
||||
"composer.placeholder": "Message… (/ for commands, @ for files, attach or paste files)",
|
||||
"composer.placeholderBusy": "Message is queued and sent at the next step…",
|
||||
"composer.placeholder": "Message… (/ for commands, @ for files, Shift+Enter or Ctrl+J for a new line)",
|
||||
"composer.placeholderBusy": "Message is queued and sent at the next step… (Ctrl+Enter sends it now)",
|
||||
"composer.send": "Send",
|
||||
"composer.queue": "Queue",
|
||||
"composer.stop": "Stop",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
||||
*/
|
||||
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
||||
"202611-00081": {
|
||||
en: ["Queued messages can be forced: Enter on the empty input, Ctrl+Enter with text or the \"Force now\" button interrupts the running step so the model reads the message at once (also in the terminal client)", "Terminal client: long input and long questions wrap instead of being cut off; queued messages are shown above the input"],
|
||||
de: ["Eingereihte Nachrichten lassen sich erzwingen: Enter im leeren Feld, Strg+Enter mit Text oder der Button „Jetzt erzwingen“ unterbricht den laufenden Schritt, sodass das Modell die Nachricht sofort liest (auch im Terminal-Client)", "Terminal-Client: lange Eingaben und lange Fragen werden umbrochen statt abgeschnitten; wartende Nachrichten stehen über dem Eingabefeld"],
|
||||
},
|
||||
"202611-00080": {
|
||||
en: ["Fixed: the Factory page no longer makes the server stall (504 errors, high CPU)"],
|
||||
de: ["Behoben: die Factory-Seite lässt den Server nicht mehr hängen (504-Fehler, hohe CPU-Last)"],
|
||||
},
|
||||
"202611-00079": {
|
||||
en: ["The server binary keeps its symbols (for diagnosing a high CPU load); no change in behaviour"],
|
||||
de: ["Das Server-Binary behält seine Symbole (zur Diagnose einer hohen CPU-Last); keine Änderung im Verhalten"],
|
||||
|
||||
Reference in new issue
Block a user