Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: clear review action when reopening items

nash_su23f21f432e53
diff --git a/src-tauri/src/api_server.rs b/src-tauri/src/api_server.rs
index 227dafca..cf0cdc39 100644
--- a/src-tauri/src/api_server.rs
+++ b/src-tauri/src/api_server.rs
@@ -1322,7 +1322,9 @@ fn resolve_review_items(
fn apply_resolution(item: &mut Value, resolved: bool, action: Option<&str>) {
if let Some(obj) = item.as_object_mut() {
obj.insert("resolved".to_string(), Value::Bool(resolved));
- if let Some(action) = action {
+ if !resolved {
+ obj.remove("resolvedAction");
+ } else if let Some(action) = action {
obj.insert("resolvedAction".to_string(), Value::String(action.to_string()));
}
}
@@ -1825,6 +1827,7 @@ mod tests {
let parsed = read_reviews(&root);
let r1 = &parsed.as_array().unwrap()[0];
assert_eq!(r1.get("resolved").and_then(Value::as_bool), Some(false));
+ assert!(r1.get("resolvedAction").is_none());
let _ = fs::remove_dir_all(root);
}
diff --git a/src/components/review/review-view.tsx b/src/components/review/review-view.tsx
index b7066c69..0d198282 100644
--- a/src/components/review/review-view.tsx
+++ b/src/components/review/review-view.tsx
@@ -45,7 +45,7 @@ export function ReviewView() {
// Reload review items from disk. The review pane has no equivalent of
// lint's re-run, so external writers — the resolve API, another window,
// a manual edit of review.json — would otherwise stay invisible until
- // the project is reopened. This is the "새로고침" affordance.
+ // the project is reopened.
const handleRefresh = useCallback(async () => {
if (!project || refreshing) return
setRefreshing(true)