Reports: crash/error fingerprint so duplicates group, and Report issue searches before opening a new one

Offen
#320 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv

Rechercherichtung

Start with fingerprint() in apps/desktop/src/lib/errors/report.ts:442 and the in-session dedupe in errors.svelte.ts:60, then trace how ErrorReport/Diagnostics serialize the Rust crash file. Compare that with the "Report issue" flow in ErrorPanel.svelte (~:160) and the manual dedupe in docs/labels.md. Done means the Rust and TS fingerprints match on the real value (contract test), the same function at different lines yields the same fingerprint, and the search URL is offered before a new issue is opened.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area: cli area: desktop priority: 2 normal status: confirmed type: feature

Roadmap item (tracking: #289). From a read-only code audit at main (9c32731); key claims re-checked in code where marked verified. [INFERENCE] = not observed at runtime.

Problem

fingerprint() (apps/desktop/src/lib/errors/report.ts:442) only dedupes toasts in-session (errors.svelte.ts:60); issueUrl carries none; "Report issue" (ErrorPanel.svelte ~:160) always opens a new issue; Rust crash files have no fingerprint; docs/labels.md dedupes by hand.

Proposal

One fingerprint computed in Rust (normalized message + first app frame), serialized through ErrorReport/Diagnostics, written in crash files and issue bodies; "Report issue" first offers issues?q=<fingerprint>.

Acceptance

  • Rust and TS fingerprints match (contract test on the real value); same function at different lines -> same fingerprint; search offered before new issue.
Vorherrschende Sprache
Rust
Sterne
3
Forks
1
Ø Merge
9 Std. 51 Min.
Gemergte PRs (30 T.)
310

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codeatlasdev/atlas

Alle Issues in codeatlasdev/atlas

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.