Skip to content

Log job source folders when DEEPWORK_ADDITIONAL_JOBS_FOLDERS is set#272

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/show-jobs-install-source
Draft

Log job source folders when DEEPWORK_ADDITIONAL_JOBS_FOLDERS is set#272
Copilot wants to merge 2 commits intomainfrom
copilot/show-jobs-install-source

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 23, 2026

When DEEPWORK_ADDITIONAL_JOBS_FOLDERS is set, there was no visibility into which folders the MCP server was actually loading jobs from.

Changes

  • server.py_log_job_source_folders() logs all job source folders at INFO on server startup (only fires when the env var is set)
  • discovery.pyload_all_jobs() emits an INFO log per extra folder listing which jobs were loaded from it; extracted _get_extra_folders() to identify env-var-sourced folders without duplicating parse logic
  • tests/unit/jobs/test_discovery.py — coverage for both logging paths and the no-log-when-unset case

Example log output

INFO  deepwork.jobs.mcp     Job source folders (DEEPWORK_ADDITIONAL_JOBS_FOLDERS is set): /proj/.deepwork/jobs, /pkg/standard_jobs, /shared/jobs
INFO  deepwork.jobs.discovery  Loaded 2 job(s) from shared folder /shared/jobs: competitive_research, monthly_report

⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI changed the title [WIP] Show jobs install source when shared jobs environment variable is set Log job source folders when DEEPWORK_ADDITIONAL_JOBS_FOLDERS is set Mar 23, 2026
Copilot AI requested a review from ncrmro March 23, 2026 00:11
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