callstack / callstack/agent-device

Compact network dump output for long React Native flows

Offen
#536 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement ready-for-agent
Vorherrschende Sprache
TypeScript
Sterne
4.6k
Forks
299
Ø Merge
10 Std. 23 Min.
Gemergte PRs (30 T.)
535

Beschreibung

## Problem

`network dump` can burn thousands of tokens on opaque URLs, heartbeat/poll endpoints, and large Pusher JSON payloads during long React Native flows such as New Expensify expense creation.

## Desired behavior

Make default network output compact and useful, with explicit flags for full detail.

## Acceptance criteria

- Default `network dump` truncates or redacts opaque long query params.
- Heartbeat/poll endpoints are filtered or summarized by default.
- Pusher `multipleEvents` payloads summarize event count, first action/type, relevant keys, and timing when possible.
- Full URLs/noise/detail remain available behind explicit include flags or modes.
- Existing `summary|headers|body|all` behavior remains compatible or has a clear migration path.

## Testing

Unit/fixture:
- Expensify-shaped `/api/fl?...` fixture.
- Pusher `multipleEvents` fixture.
- Heartbeat/poll endpoint fixture.
- Explicit full-detail mode preserves raw URL/payload data.

New Expensify Android verification:
- Run the camera-scan expense flow with log markers.
- Run `network dump` and confirm output is compact but still identifies relevant create/IOU/Pusher activity.
- Confirm full-detail mode can still expose the raw request data when intentionally requested.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne beim Befehl `network dump` und verfolge die bestehende Verarbeitung von `summary|headers|body|all`. Führe die Expensify-shaped-, Pusher-`multipleEvents`- und Heartbeat/Poll-Fixtures aus oder füge sie hinzu und überprüfe anschließend die standardmäßig kompakte Ausgabe sowie die Rohdaten im expliziten Vollständigkeitsmodus. Die Android-Verifizierung verwendet den Kamera-Scan-Ausgabenablauf von New Expensify und dessen Log-Marker.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
react-native, typescript
Bereich
cli, performance, testing
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

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