Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
88bd338
Fix autonomous replan settlement recovery
huangruiteng Nov 15, 2026
dfa6de7
fix: isolate agent settlement from peer semantic receipts (#8853)
huangruiteng Nov 16, 2026
f599a60
docs: add Japanese README (#8839)
eltociear Nov 16, 2026
d4fb467
Reduce private App mirror delivery latency
loopx-agent Nov 16, 2026
35c22c4
fix(replan): keep a Monitor-streak replan's receipt source after clos…
xiaobaifly7 Nov 16, 2026
d22a497
Preserve scheduler reconciliation during recovery waits (#8851)
loopx-agent Nov 16, 2026
ab95b72
Fence DSH maintenance plans returned after cancellation (#8856)
loopx-agent Nov 16, 2026
2998d5e
Preserve keyboard focus when Goal work is reprioritized (#8849)
loopx-agent Nov 16, 2026
7c6c942
fix(monitor): never project a User gate completion from an observatio…
xiaobaifly7 Nov 16, 2026
cac86bb
fix(turn): complete validated Codex Todos before accountable writebac…
xiaobaifly7 Nov 16, 2026
0b6b50e
Merge commit 'd4fb46742f55071c1e5072e19223ca967b223ade' into codex/la…
loopx-agent Nov 16, 2026
3d30531
fix(lark): keep App feedback writeback nonblocking
loopx-agent Nov 16, 2026
cd3bf61
fix(chat): scope saved answer reads to the original Turn
loopx-agent Nov 16, 2026
c8122fd
fix(chat): bind cold import to the registered Goal source
loopx-agent Nov 16, 2026
97002be
fix(chat): read the chosen saved answer instead of its history
loopx-agent Nov 16, 2026
4ab1558
fix(chat): preserve complete legacy saved-answer snapshots
loopx-agent Nov 16, 2026
02cc338
fix(manager): preserve global todos across scoped health failures (#8…
loopx-agent Nov 16, 2026
d0ca48d
fix(quota): verify retained debit identity before replay (#8860)
loopx-agent Nov 16, 2026
f585427
Merge pull request #8863 from loopx-project/codex/answer-reader-origi…
loopx-agent Nov 16, 2026
3591eb7
fix(replan): integrate original receipt recovery with current Monitor…
loopx-agent Nov 16, 2026
0c3b2fd
Merge pull request #8858 from loopx-project/codex/lark-app-mirror-lat…
loopx-agent Nov 16, 2026
812241c
test(quota): exercise routed hard-lease settlement and replay (#8852)
loopx-agent Nov 16, 2026
eb81f44
fix(quota): type the heterogeneous interaction CLI channel (#8869)
huangruiteng Nov 16, 2026
3f45839
Verify pending replan checkpoints in the artifact owner (#8797)
loopx-agent Nov 16, 2026
2f7b4c0
fix(replan): project exact closeout commands for a pure replan Turn (…
xiaobaifly7 Nov 16, 2026
d0f3ea9
docs(rfc): update benchmark portfolio priority ranking and Bitter-Les…
loopx-agent Nov 16, 2026
57807a9
fix(cli): preserve Goal source routing in runtime conflict guidance (…
loopx-agent Nov 16, 2026
6cb5499
Keep saved research cases in place across desktop reopening (#8868)
loopx-agent Nov 16, 2026
b9f2e2a
docs(blog): qualify the EdgeBench Context ON/OFF snapshot (#8862)
loopx-agent Nov 16, 2026
1e87c17
fix(replan): integrate current main without losing receipt recovery
loopx-agent Nov 16, 2026
f15ebdd
fix(coordination): let an owner close an exact linked user gate on a …
mojunzi Nov 16, 2026
c706caa
fix(authority): scope remote Todo reads to the active Goal (#8861)
loopx-agent Nov 16, 2026
4d4ea89
Fix original quoted message reading in the persistent queue (#8880)
loopx-agent Nov 16, 2026
7057c18
Fix phase-budget timeout test startup isolation (#8877)
loopx-agent Nov 16, 2026
31944d8
Prepare the LoopX 2.4.0 package and documentation identity (#8873)
loopx-agent Nov 16, 2026
ff80496
Integrate the registered-source proposal on current main
loopx-agent Nov 16, 2026
b12608d
fix(extensions): follow the selected registry runtime (#8888)
loopx-agent Nov 16, 2026
4154712
Serialize cold import source selection with registry writers
loopx-agent Nov 16, 2026
4989eec
Integrate current main for cold import recovery validation
loopx-agent Nov 16, 2026
19c47a3
Wrap storage receipt identifiers in narrow settings details
loopx-agent Nov 16, 2026
c9d8616
Merge pull request #8864 from loopx-project/codex/chat-cold-import-so…
loopx-agent Nov 16, 2026
a7dbd9e
Merge current main into original Turn recovery proposal
loopx-agent Nov 16, 2026
fbda487
Preserve fresh selection gates while recovering original Turns
loopx-agent Nov 16, 2026
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
2 changes: 2 additions & 0 deletions .github/workflows/frontstage-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- ".github/workflows/frontstage-pages.yml"
- "README.md"
- "README.zh-CN.md"
- "README.ja.md"
- "apps/presentation/dashboard/**"
- "scripts/chat_bundle.py"
- "scripts/chat_bundle_launcher.mjs"
Expand Down Expand Up @@ -56,6 +57,7 @@ on:
- ".github/workflows/frontstage-pages.yml"
- "README.md"
- "README.zh-CN.md"
- "README.ja.md"
- "apps/presentation/dashboard/**"
- "scripts/chat_bundle.py"
- "scripts/chat_bundle_launcher.mjs"
Expand Down
978 changes: 978 additions & 0 deletions README.ja.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ progress, decisions and verifiable results so work can continue across sessions.

[![Local-first state](https://img.shields.io/badge/local--first-state-brightgreen.svg)](docs/public-private-boundary.md) [![Loop Agents](https://img.shields.io/badge/status-loop%20agents%20supported-brightgreen.svg)](docs/product/release-readiness.md) [![GitHub contributors](https://img.shields.io/github/contributors-anon/loopx-project/loopx?color=blue)](https://github.com/loopx-project/loopx/graphs/contributors) [![Discord](https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white)](https://discord.gg/XmGgQyCFZd) [![Listed on dsh-plugin.org](https://dsh-plugin.org/badges/listed.svg)](https://dsh-plugin.org/plugins/loopx-project/loopx)

[Get started](#quick-start) · [Why LoopX](#why-loopx) · [24/7 Always-On](#always-on-agents) · [See it in action](#see-loopx-in-action) · [Evidence](#evidence) · [Contribute](#contributing) · [Docs](https://loopx-project.github.io/loopx/docs/) · [简体中文](README.zh-CN.md)
[Get started](#quick-start) · [Why LoopX](#why-loopx) · [24/7 Always-On](#always-on-agents) · [See it in action](#see-loopx-in-action) · [Evidence](#evidence) · [Contribute](#contributing) · [Docs](https://loopx-project.github.io/loopx/docs/) · [简体中文](README.zh-CN.md) · [日本語](README.ja.md)

</div>

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[![Local first](https://img.shields.io/badge/control--plane-local--first-brightgreen.svg)](docs/public-private-boundary.md) [![Loop Agents](https://img.shields.io/badge/status-loop%20agents%20supported-brightgreen.svg)](docs/product/release-readiness.md) [![GitHub contributors](https://img.shields.io/github/contributors-anon/loopx-project/loopx?color=blue)](https://github.com/loopx-project/loopx/graphs/contributors) [![Discord](https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white)](https://discord.gg/XmGgQyCFZd) [![Listed on dsh-plugin.org](https://dsh-plugin.org/badges/listed.svg)](https://dsh-plugin.org/plugins/loopx-project/loopx)

[快速上手](#快速开始) · [为什么需要 LoopX](#为什么需要-loopx) · [7×24 常驻架构](#always-on-agents) · [看看实际使用](#看看-loopx-如何工作) · [证据与案例](#证据) · [参与贡献](#贡献) · [文档](https://loopx-project.github.io/loopx/docs/) · [English](README.md)
[快速上手](#快速开始) · [为什么需要 LoopX](#为什么需要-loopx) · [7×24 常驻架构](#always-on-agents) · [看看实际使用](#看看-loopx-如何工作) · [证据与案例](#证据) · [参与贡献](#贡献) · [文档](https://loopx-project.github.io/loopx/docs/) · [English](README.md) · [日本語](README.ja.md)

</div>

Expand Down
7 changes: 7 additions & 0 deletions apps/desktop/loopx-control-plane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,13 @@ directly in Research after a normal quit and a loopback-port change. Window
close/reopen, an explicit return to Manager and a corrupt preference were also
checked. It does not demonstrate model execution or an official App upgrade.

Within a local Goal's Research view, the preference also retains an explicit
case/history choice, selected registered analysis pack and chapter or citation
bookmark. The dashboard rechecks the pack and source when reopening. A missing
or inaccessible pack keeps its existing reader recovery path. The bookmark
must match the selected pack and the dashboard's chapter grammar. Existing
version-1 preferences without research selections continue to open as before.

![Packaged QA reopening the same synthetic Goal in Research](docs/assets/research-reopen-qa.jpg)

For native qualification, use a separately identified packaged App with the
Expand Down
231 changes: 226 additions & 5 deletions apps/desktop/loopx-control-plane/src-tauri/src/workspace_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,66 @@ struct LocalWorkspace {
view: Option<String>,
work_agent: Option<String>,
todo: Option<String>,
research: Option<ResearchReading>,
}

/// Selection within the existing dashboard reader, scoped to this local Goal.
#[derive(Debug, PartialEq)]
struct ResearchReading {
mode: String,
pack_id: Option<String>,
chapter: Option<String>,
}

fn digest_id(value: &str) -> bool {
value.len() == 64
&& value
.bytes()
.all(|c| c.is_ascii_digit() || (b'a'..=b'f').contains(&c))
}

impl ResearchReading {
fn selections(mode: &str, pack: &str, chapter: &str) -> Option<Self> {
if !matches!(mode, "case" | "history") {
return None;
}
let pack_id = digest_id(pack).then(|| pack.to_owned());
// The frontend resolves this bookmark against the saved study. Carry
// only its declared chapter/citation grammar, never an arbitrary URL.
let chapter = pack_id.as_deref().and_then(|pack| {
let body = chapter.strip_prefix("case-section-")?;
let prefix = format!("{pack}-");
let section = body.strip_prefix(&prefix).or_else(|| {
let (namespace, rest) = body.split_once('-')?;
digest_id(namespace).then_some(rest)?.strip_prefix(&prefix)
})?;
let (id, citation) = match section.split_once('~') {
Some((id, ordinal)) => (id, Some(ordinal)),
None => (section, None),
};
let valid_id = id.len() <= 80
&& id
.bytes()
.all(|c| c.is_ascii_alphanumeric() || b"_-".contains(&c))
&& (!id.is_empty() || citation.is_some());
let valid_citation = citation.is_none_or(|ordinal| {
ordinal.len() <= 2
&& !ordinal.starts_with('0')
&& ordinal.bytes().all(|c| c.is_ascii_digit())
&& !ordinal.is_empty()
});
(mode == "case" && valid_id && valid_citation).then(|| chapter.to_owned())
});
Some(Self {
mode: mode.to_owned(),
pack_id,
chapter,
})
}

fn value(&self) -> Value {
json!({"mode": self.mode, "pack_id": self.pack_id, "chapter": self.chapter})
}
}

// Match the existing Goal instance ID and frontend Agent/Todo search boundary.
Expand Down Expand Up @@ -44,6 +104,7 @@ impl LocalWorkspace {
.then(|| view.to_owned()),
work_agent: selection_id(agent),
todo: selection_id(todo),
research: None,
})
}

Expand Down Expand Up @@ -71,7 +132,23 @@ impl LocalWorkspace {
// authority. Reopening that unsupported context returns Manager.
return Some(Self::default());
}
Self::selections(get("goalId"), get("view"), get("workAgent"), get("todo"))
let mut selection =
Self::selections(get("goalId"), get("view"), get("workAgent"), get("todo"))?;
if selection.view.as_deref() == Some("research")
&& get("research_goal") == selection.goal_id
{
let pack = if get("research_analysis_goal") == selection.goal_id {
get("research_pack")
} else {
""
};
selection.research = ResearchReading::selections(
get("research_reading"),
pack,
current.fragment().unwrap_or(""),
);
}
Some(selection)
}

fn destination(&self, origin: &Url) -> Url {
Expand All @@ -90,25 +167,51 @@ impl LocalWorkspace {
query.append_pair(key, value);
}
}
if let Some(research) = &self.research {
query.append_pair("research_goal", &self.goal_id);
query.append_pair("research_reading", &research.mode);
if let Some(pack) = &research.pack_id {
query.append_pair("research_analysis_goal", &self.goal_id);
query.append_pair("research_pack", pack);
}
}
drop(query);
destination.set_fragment(
self.research
.as_ref()
.and_then(|research| research.chapter.as_deref()),
);
destination
}

fn from_value(value: &Value) -> Option<Self> {
if value["version"] != 1 {
return None;
}
Self::selections(
let mut selection = Self::selections(
value["goal_id"].as_str()?,
value["view"].as_str().unwrap_or(""),
value["work_agent"].as_str().unwrap_or(""),
value["todo"].as_str().unwrap_or(""),
)
)?;
if !selection.goal_id.is_empty() && selection.view.as_deref() == Some("research") {
let research = &value["research"];
selection.research = ResearchReading::selections(
research["mode"].as_str().unwrap_or(""),
research["pack_id"].as_str().unwrap_or(""),
research["chapter"].as_str().unwrap_or(""),
);
}
Some(selection)
}

fn value(&self) -> Value {
json!({"version": 1, "goal_id": self.goal_id, "view": self.view,
"work_agent": self.work_agent, "todo": self.todo})
let mut value = json!({"version": 1, "goal_id": self.goal_id, "view": self.view,
"work_agent": self.work_agent, "todo": self.todo});
if let Some(research) = &self.research {
value["research"] = research.value();
}
value
}
}

Expand Down Expand Up @@ -211,6 +314,124 @@ mod tests {
format!("http://127.0.0.1:{port}/chat/").parse().unwrap()
}

fn research_page(port: u16) -> Url {
let mut page = origin(port);
page.query_pairs_mut().extend_pairs([
("goalId", "example"),
("view", "research"),
("research_goal", "example"),
("research_reading", "case"),
("research_analysis_goal", "example"),
("research_pack", &"a".repeat(64)),
]);
page
}

#[test]
fn research_reopen_keeps_registered_pack_and_chapter_or_citation_on_the_new_port() {
let directory = tempfile::tempdir().unwrap();
let path = directory.path().join("workspace-location.json");
for namespace in [String::new(), format!("{}-", "b".repeat(64))] {
for section in ["turning-point", "turning-point~2", "~1"] {
let mut page = research_page(49123);
let chapter = format!("case-section-{namespace}{}-{section}", "a".repeat(64));
page.set_fragment(Some(&chapter));
let saved = LocalWorkspace::capture(&page, &origin(49123)).unwrap();
write(&path, &saved).unwrap();
let reopened = read(&path).unwrap().destination(&origin(59234));
assert_eq!(reopened.port(), Some(59234));
let reopened_query = reopened
.query_pairs()
.into_owned()
.collect::<BTreeMap<_, _>>();
for (key, value) in page.query_pairs().into_owned() {
assert_eq!(reopened_query.get(&key), Some(&value));
}
assert_eq!(reopened.fragment(), Some(chapter.as_str()));
let bytes = fs::read_to_string(&path).unwrap();
assert!(!bytes.contains("49123") && !bytes.contains("http"));
assert_eq!(read(&path), Some(saved));
}
}
}

#[test]
fn research_selections_stay_with_their_goal_view_and_pack() {
let mut page = research_page(49123);
page.set_fragment(Some(&format!(
"case-section-{}-turning-point",
"a".repeat(64)
)));
for (key, value) in [
("goalId", "other"),
("view", "tasks"),
("research_goal", "other"),
] {
let mut changed = page.clone();
let pairs = changed
.query_pairs()
.into_owned()
.map(|(k, v)| {
let v = if k == key { value.to_owned() } else { v };
(k, v)
})
.collect::<Vec<_>>();
changed.query_pairs_mut().clear().extend_pairs(pairs);
assert!(LocalWorkspace::capture(&changed, &origin(49123))
.unwrap()
.research
.is_none());
}
for pack in ["wrong", &"c".repeat(64)] {
let mut changed = page.clone();
changed.query_pairs_mut().clear().extend_pairs([
("goalId", "example"),
("view", "research"),
("research_goal", "example"),
("research_reading", "case"),
("research_analysis_goal", "other"),
("research_pack", pack),
]);
let saved = LocalWorkspace::capture(&changed, &origin(49123)).unwrap();
let research = saved.research.unwrap();
assert!(research.pack_id.is_none() && research.chapter.is_none());
}
let history =
ResearchReading::selections("history", &"a".repeat(64), page.fragment().unwrap())
.unwrap();
assert_eq!(history.mode, "history");
assert!(history.chapter.is_none());
assert!(ResearchReading::selections("retired", "", "").is_none());
}

#[test]
fn invalid_bookmarks_and_unrelated_preference_fields_are_not_restored() {
let pack = "a".repeat(64);
for chapter in [
"https://example.org/secret".to_owned(),
format!("case-section-{}-chapter", "c".repeat(64)),
format!("case-section-{pack}-../secret"),
format!("case-section-{pack}-chapter~0"),
format!("case-section-{pack}-chapter~01"),
format!("case-section-{pack}-chapter~100"),
format!("case-section-{pack}-{}", "x".repeat(81)),
] {
assert!(ResearchReading::selections("case", &pack, &chapter)
.unwrap()
.chapter
.is_none());
}
let legacy = json!({"version": 1, "goal_id": "example", "view": "research"});
let saved = LocalWorkspace::from_value(&legacy).unwrap();
assert!(saved.research.is_none());
let mut modified = legacy;
modified["research"] = json!({"mode": "case", "pack_id": pack, "chapter": "secret", "url": "https://example.org"});
let restored = LocalWorkspace::from_value(&modified).unwrap();
assert!(restored.research.as_ref().unwrap().chapter.is_none());
assert!(!restored.value().to_string().contains("secret"));
assert!(!restored.value().to_string().contains("example.org"));
}

#[test]
fn ordinary_reopen_keeps_selection_across_ports_without_replaying_other_inputs() {
let old = origin(49123);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,28 @@ def start(self, server):
"position": 1, "content": body}]}}
frozen = conversation_reply_context(raw)["context_text"] + "\n\nCurrent user message:\n" + body
record.update(reply_context_message=frozen, reply_context_source_text=body)
turn, _ = server.chat_store.create_turn(sid, client_turn_id=f"external-{request}", message=frozen, origin="lark")
queued_reply = "--queued-reply" in sys.argv
if queued_reply:
server.chat_store.create_turn(sid, client_turn_id="synthetic-held-turn", message="An active synthetic task.", origin="web")
create = server.chat_store.create_queued_turn if queued_reply else server.chat_store.create_turn
attachments = []
if queued_reply:
image = "iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAIAAAASFvFNAAAAEElEQVR4nGP4v0gdghjgLABwBAqxX1jWkgAAAABJRU5ErkJggg=="
attachments = [{"id": "queued-image", "name": "queued-image.png", "mime_type": "image/png",
"size": len(base64.b64decode(image)), "data_url": "data:image/png;base64," + image}]
turn, _ = create(sid, client_turn_id=f"external-{request}", message=frozen, origin="lark", attachments=attachments)
correlation = {"request_ref": request, "binding_id": binding["binding_id"], "source": source,
"session_id": sid, "turn_id": turn["turn_id"]}
for directory, value in (("external-requests", {**correlation, "status": "accepted", "command": None, "message": frozen}),
("lark-private-deliveries", {**record, **correlation, "status": "delivered"})):
_atomic_write_json(server.chat_store.root / directory / f"{request}.json", value)
server.chat_store.update_turn(sid, turn["turn_id"], status="completed")
server.chat_store.release_active_turn(sid, turn["turn_id"])
server.chat_store.append_message(sid, role="agent", text="已保留原要求,当前核验结果待进一步确认。", turn_id=turn["turn_id"])
if queued_reply:
# Identical prose without admission journals must stay literal.
server.chat_store.create_queued_turn(sid, client_turn_id="synthetic-literal-context", message=frozen, origin="web")
else:
server.chat_store.update_turn(sid, turn["turn_id"], status="completed")
server.chat_store.release_active_turn(sid, turn["turn_id"])
server.chat_store.append_message(sid, role="agent", text="已保留原要求,当前核验结果待进一步确认。", turn_id=turn["turn_id"])
paths = [server.chat_store.root / directory / f"{request}.json"
for directory in ("external-requests", "lark-private-deliveries")]
paths.extend([server.chat_store.sessions_root / sid / "messages.jsonl",
Expand Down
Loading
Loading