Skip to content

z#15

Merged
raymondjstone merged 1 commit into
masterfrom
develop
Apr 9, 2026
Merged

z#15
raymondjstone merged 1 commit into
masterfrom
develop

Conversation

@raymondjstone
Copy link
Copy Markdown
Owner

fix

Copilot AI review requested due to automatic review settings April 9, 2026 16:29
@raymondjstone raymondjstone merged commit 7095880 into master Apr 9, 2026
1 check passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

Qodana for JVM

It seems all right 👌

No new problems were found according to the checks applied

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how LocalMode background jobs determine whether “JSA Activity Mode” should be available, and wires up the related job in DI. It also updates the tracked portable ZIP split artifacts (Git LFS pointers).

Changes:

  • Update LocalBackgroundService to enable JSA Activity Mode based on the JSON storage data directory path (instead of the hardcoded Data/ path).
  • Register JsaActivityModeJob with the DI container.
  • Update Git LFS pointer metadata for portable ZIP split files.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Services/LocalBackgroundService.cs Changes how JSA Activity Mode visibility is determined (now based on storage backend data directory).
Program.cs Registers JsaActivityModeJob in DI so the background service can resolve it.
Portable/JobTracker-x86.zip.001 Updates Git LFS pointer (portable artifact).
Portable/JobTracker-x86.zip.002 Updates Git LFS pointer (portable artifact).
Portable/JobTracker-x64.zip.001 Updates Git LFS pointer (portable artifact).
Portable/JobTracker-x64.zip.002 Updates Git LFS pointer (portable artifact).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 94 to +100
_configPath = Path.Combine(env.ContentRootPath, "Data", "background-jobs.json");

// JSA Activity Mode is only available when the data directory contains "passp"
_jsaActivityEnabled = _configPath.Contains("passp", StringComparison.OrdinalIgnoreCase);
// JSA Activity Mode is only available when the user data directory path contains "passp"
var dataDir = storageBackend is JsonStorageBackend jsonBackend
? jsonBackend.GetDataDirectory()
: env.ContentRootPath;
_jsaActivityEnabled = dataDir.Contains("passp", StringComparison.OrdinalIgnoreCase);
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_configPath is still hardcoded to env.ContentRootPath/Data/background-jobs.json, but the app supports a custom data directory via data-directory.config (used when constructing JsonStorageBackend). When a custom data dir is configured, the background job config will be read/written in the wrong folder and won’t be included in JSON backups. Consider deriving _configPath from the JSON backend data directory (e.g., jsonBackend.GetDataDirectory()) when available, and only fall back to env.ContentRootPath when not using JSON storage.

Copilot uses AI. Check for mistakes.
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.

2 participants