Skip to content

fix(scheduler): restore context loading for skill-based runNow entries - #672

Merged
avoidwork merged 1 commit into
mainfrom
fix/scheduler-context-loading
Aug 2, 2026
Merged

fix(scheduler): restore context loading for skill-based runNow entries#672
avoidwork merged 1 commit into
mainfrom
fix/scheduler-context-loading

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

Description

Restores the contextFile loading logic that was accidentally removed during the scheduler refactoring in PR #671. Skill-based runNow entries now correctly load context from entry.contextFile, falling back to loadContext(contextDir) if the file doesn't exist.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)

Testing

  • All 1054 existing tests pass.
  • The fix restores the original behavior — no new tests needed since the existing scheduler - ScheduleManager test suite already covers runNow with skill entries (which implicitly tests context loading).

Coverage

  • Line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with maintained line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

The scheduler refactoring accidentally removed the contextFile loading
logic from the skill-based runNow path. This restores it so that
skill entries with a contextFile set will load context from that file,
falling back to loadContext(contextDir) if the file doesn't exist.
@avoidwork avoidwork added the bug Something isn't working label Aug 2, 2026
@avoidwork avoidwork self-assigned this Aug 2, 2026
@avoidwork avoidwork added the bug Something isn't working label Aug 2, 2026
@avoidwork
avoidwork enabled auto-merge (squash) August 2, 2026 14:56
@avoidwork
avoidwork merged commit db9eeb1 into main Aug 2, 2026
3 checks passed
@avoidwork
avoidwork deleted the fix/scheduler-context-loading branch August 2, 2026 14:56
@avoidwork avoidwork mentioned this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant