Testing#12
Conversation
fix: update version in package.json and add tests for audio restore l…
|
| Filename | Overview |
|---|---|
| scripts/system_audio_controller.ps1 | Adds GetProcessNamesAllowingFallback guard to prevent unrelated muted tabs from consuming pending snapshots via process-name fallback; new self-test case 5b covers the scenario. |
| src/main/main.js | Defers pendingAudioRestoreFollowupsRemaining budget to the last fixed-delay timer's onFire callback, preventing early restore-complete responses from exhausting retries before the 5-minute attempt. |
| scripts/test-duck-restore.js | Adds 'unrelated-muted-tab-skips-process-name-fallback' to the expected test name list, in sync with the new self-test case. |
| package.json | Version bump from 1.3.042 to 1.3.043, following the required x.x.xxx format. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[MatchSnapshotsForRestore called] --> B[IndexSnapshots]
B --> C[GetProcessNamesAllowingFallback]
C --> D{For each process name in snapshots}
D --> E[snapshotCount == duckedCount == totalLiveCount?]
E -- Yes --> F[Add to allowedSet]
E -- No --> G[Excluded from fallback]
F & G --> H[Pass 1: ducked live sessions]
H --> I[FindRestoreSnapshotForLive allowFallback=true]
I --> J{Instance ID match?}
J -- Yes --> K[Match found]
J -- No --> L{Session ID match?}
L -- Yes --> K
L -- No --> M{Process ID match?}
M -- Yes --> K
M -- No --> N{Process in allowedSet?}
N -- Yes --> O[Process-name fallback match]
N -- No --> P[No match - stays Pending]
K & O --> Q[Add to plan.Matches]
P --> R[Pass 2: identity-only on all live sessions allowFallback=false]
R --> S[Remaining unmatched - plan.Pending]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[MatchSnapshotsForRestore called] --> B[IndexSnapshots]
B --> C[GetProcessNamesAllowingFallback]
C --> D{For each process name in snapshots}
D --> E[snapshotCount == duckedCount == totalLiveCount?]
E -- Yes --> F[Add to allowedSet]
E -- No --> G[Excluded from fallback]
F & G --> H[Pass 1: ducked live sessions]
H --> I[FindRestoreSnapshotForLive allowFallback=true]
I --> J{Instance ID match?}
J -- Yes --> K[Match found]
J -- No --> L{Session ID match?}
L -- Yes --> K
L -- No --> M{Process ID match?}
M -- Yes --> K
M -- No --> N{Process in allowedSet?}
N -- Yes --> O[Process-name fallback match]
N -- No --> P[No match - stays Pending]
K & O --> Q[Add to plan.Matches]
P --> R[Pass 2: identity-only on all live sessions allowFallback=false]
R --> S[Remaining unmatched - plan.Pending]
Reviews (1): Last reviewed commit: "Merge pull request #11 from MusicMaster4..." | Re-trigger Greptile
No description provided.