Skip to content

(via norrietaylor): fix(diag): continue directory walk when sessions/index.json is absent - #913

Merged
macroscopeapp[bot] merged 1 commit into
feat/diag-unit6-daemon-bundlefrom
macroscope/feat/diag-unit6-daemon-bundle
Jul 22, 2026
Merged

(via norrietaylor): fix(diag): continue directory walk when sessions/index.json is absent#913
macroscopeapp[bot] merged 1 commit into
feat/diag-unit6-daemon-bundlefrom
macroscope/feat/diag-unit6-daemon-bundle

Conversation

@macroscopeapp

@macroscopeapp macroscopeapp Bot commented Jul 22, 2026

Copy link
Copy Markdown

Summary

Fixes the diagnostic directory walk to continue when sessions/index.json is absent, instead of returning early.

Changes

Updated the sessions function to call w.skip("sessions/index.json", "not present") instead of returning early when the index file is missing (Ok(None) case). This allows the directory enumeration logic to proceed and collect orphan session records even when the index file doesn't exist.

Motivation

Previously, if sessions/index.json was not present, the function would return immediately, preventing detection of orphan session records in the directory. Now the diagnostic walk continues, providing more complete diagnostic information regardless of whether the index file exists.

Note

Macroscope: Fix It For Me

Activity

Currently: Auto-merged 66e57a4

Previously

Note

Fix directory walk in sessions to continue when sessions/index.json is absent

Previously, a missing sessions/index.json caused the sessions function in diag.rs to return early, skipping enumeration of the sessions directory entirely. Now it records a skip note for the missing index and continues walking the directory so session records are still considered.

Macroscope summarized 5cd2b31.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: ffd86599-84ad-412f-8d13-169226453dda

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@macroscopeapp
macroscopeapp Bot merged commit 66e57a4 into feat/diag-unit6-daemon-bundle Jul 22, 2026
2 checks passed
@macroscopeapp
macroscopeapp Bot deleted the macroscope/feat/diag-unit6-daemon-bundle branch July 22, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant