Card: archive the session a closed card asked in #35
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 400 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #35"
general
weight: 0.35
HavenXia
What this does
Closing a card with the ✕ left the session that question ran in behind in
DSH's list — one entry per shaken question, all of them for the user to tidy
up by hand.
Now the card hands its session to Pointy as it closes, and the plugin
archives it through
workspaceRegistry.archiveSession, the same path DSH'sown archive action takes.
that session for a question. A session the user picked in the card
("接着:…") or continued behind the ↗ button stays where it is.
Closed" (
tray.autoArchiveinsettings.json, on by default) — turns thebehaviour off.
through its pill, the archive waits for that session's
turn/endinsteadof archiving with
stopActivity.so it cannot come back through the card's "接着" list, and the pill path
archives the same way the ✕ does.
Sessions are archived, not deleted: DSH's archive set hides them from every
list and the conversation is still there to unarchive.
Files
desktop/internal/ui/archive.go,services.go,pills.go— a closedcard or pill hands its session over when the tray allows it.
desktop/internal/agent/agent.go— thearchivemessage to the plugin.desktop/internal/config/settings.go,desktop/internal/ui/tray.go,locales/{en,zh-CN}.json— the checkbox and its two strings.plugin/src/node.ts— archive through the workspace registry, gated onthe sessions Pointy started, retried at
turn/end.app/card/card.ts,app/bridge/card.ts,app/bridge/mygo.ts(generated)— pass the session to
close.Testing
go test ./...andgo vet ./...(Go 1.27.3): all packages pass,including the new
uiarchive tests, the tray test and the relay test.npm run check(tsc for app, extension, plugin and tools, thennode --test): 39/39 pass.-tags e2ebuild and the repo'stools/fake-plugin.ts, isolated withPOINTY_HOMEandPOINTY_PORT:-
E2E.OpenGrab→ typed a question in the card → the fake pluginanswered → clicked the card's ✕ → the pet sent
{"type":"archive","sessionId":"session-fake"}.- With
"autoArchive": falseinsettings.json, the same ✕ sentnothing.
workspaceRegistry.archiveSessionround trip), which needs DSH with areal model. The plugin's call is the guarded one in
plugin/src/node.ts;it never touches
stopActivity, and aWorkspaceActiveSessionErroronlydefers the archive to
turn/end.Notes for review
for; turning it off restores the old behaviour exactly.
settings.jsongainsautoArchive; old files without it keep the defaultand unknown keys are still preserved, per
config.Settings.feature tracked separately.