ework-web 0.10.119 → 0.10.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.119",
3
+ "version": "0.10.120",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
@@ -11,6 +11,7 @@ import {
11
11
  ensureUser,
12
12
  postComment,
13
13
  editIssue,
14
+ updateIssueAiStatus,
14
15
  updateUpstreamSyncState,
15
16
  listEnabledUpstreamSyncs,
16
17
  } from "./store";
@@ -155,6 +156,10 @@ export class UpstreamSync {
155
156
  const target: "open" | "closed" = gi.state === "closed" ? "closed" : "open";
156
157
  if (existing.state === target) return false;
157
158
  await editIssue(existing.id, { state: target });
159
+ // stale AI badges on closed rows read as noise on the issue list
160
+ if (target === "closed" && existing.ai_status && existing.ai_status !== "completed") {
161
+ await updateIssueAiStatus(existing.id, "");
162
+ }
158
163
  if (emit) {
159
164
  void emitIssueEvent(this.project.id, existing.id, target === "closed" ? "closed" : "reopened", this.origin);
160
165
  }