Skip to content

[DEV-94] Reload workspace and automation config without restarting the worker - #80

Merged
danii1 merged 6 commits into
mainfrom
feature/dev-94-attempt-5
Sep 1, 2026
Merged

[DEV-94] Reload workspace and automation config without restarting the worker#80
danii1 merged 6 commits into
mainfrom
feature/dev-94-attempt-5

Conversation

@danii1

@danii1 danii1 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Task: DEV-94

Summary

Reload validated workspace configuration without restarting the worker. This update also merges the current main branch and completes runtime reload support for estimations and other settings introduced after the original implementation.

Settings applied live

  • Repository routing, labels, environment, default branches, and remote URL changes
  • task_query, poll_interval, worker_task_args, and worktrees_ttl_days
  • Automations and estimations, including additions, removals, enabled state, queries, schedules, and estimation concurrency
  • Conflict resolution mode and schedule
  • GitHub allowed repositories and mention sweeps

Existing in-flight work finishes safely while later runs use the updated configuration. Durable schedules preserve their state when unchanged and reconcile when their definitions change.

Startup-only settings

  • Tracker selection and credentials loaded from .env
  • Dashboard enablement and port

A change to a startup-only setting rejects the entire reload, leaving the last valid configuration active. Runtime-incompatible tracker/query changes are also rejected with restart guidance.

Reliability

  • Watches the parent directory so atomic editor saves are detected
  • Debounces rapid changes and supports SIGHUP as a manual reload
  • Rejects malformed, schema-invalid, and semantically invalid configuration before mutating active state
  • Updates existing bare-clone remotes when repository URLs change
  • Dynamically enables or drains the shared run coordinator as estimation settings change

Verification

  • Format, lint, and typecheck passed
  • Full test suite passed across all 11 packages; @getdevintern/code: 1194 passed, 0 failed
  • Full monorepo build passed

This PR was automatically created by @devintern/code

@danii1

danii1 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

🔀 This branch had merge conflicts with main; devintern resolved them and pushed the merge. Please double-check the resolution.

@danii1 danii1 added the devintern-authored Pull request written by DevIntern working its own backlog label Aug 29, 2026
# Conflicts:
#	packages/code/src/lib/workspace/workspace-worker.ts
@danii1

danii1 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ devintern pushed a merge of main into this branch, but GitHub still reports a problem with the PR (GitHub still reports merge conflicts after the push (the base likely advanced again); re-run resolve-conflicts). The merge commit is on the branch — please re-run conflict resolution or check the PR state manually.

# Conflicts:
#	packages/code/src/lib/review-polling-acquirer.ts
@danii1

danii1 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

🔀 This branch had merge conflicts with main; devintern resolved them and pushed the merge. Please double-check the resolution.

# Conflicts:
#	docs/code/workspaces.md
#	packages/code/src/lib/automation-acquirer.ts
#	packages/code/src/lib/workspace/workspace-worker.ts
@danii1

danii1 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

🔀 This branch had merge conflicts with main; devintern resolved them and pushed the merge. Please double-check the resolution.

@danii1
danii1 merged commit 7ff6df7 into main Sep 1, 2026
1 check passed
@danii1
danii1 deleted the feature/dev-94-attempt-5 branch September 1, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devintern-authored Pull request written by DevIntern working its own backlog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant