Skip to content

Conversation

@KNN-07
Copy link
Collaborator

@KNN-07 KNN-07 commented Jan 15, 2026

Summary

Fixes the bug where /start-work [PLAN] ultrawork would work on a stale plan instead of the explicitly specified plan.

Problem

When user types /start-work my-plan ultrawork:

  1. The auto-slash-command hook captures args as my-plan ultrawork (keyword pollutes plan name)
  2. The keyword-detector hook triggers on ultrawork and injects ultrawork-mode
  3. The start-work hook ignored the explicit plan name and always resumed the existing boulder.json state

This caused the agent to work on the wrong plan (stale boulder state) instead of the user-specified plan.

Solution

The start-work hook now:

  1. Extracts plan name from <user-request> section
  2. Strips ultrawork/ulw keywords from the plan name argument
  3. Searches for matching plan (exact match first, then partial match)
  4. Uses the matched plan instead of blindly resuming stale boulder state
  5. Clears stale boulder.json when switching to explicitly requested plan

Test Cases Added

  • ✅ Should select explicitly specified plan name, ignoring existing boulder state
  • ✅ Should strip ultrawork keyword from plan name argument
  • ✅ Should strip ulw keyword from plan name argument
  • ✅ Should match plan by partial name

Verification

bun test src/hooks/start-work/
# 12 pass, 0 fail

Summary by cubic

Fixes /start-work to honor the explicit plan name and ignore “ultrawork/ulw” keywords, preventing sessions from resuming a stale plan. Users typing “/start-work my-plan ultrawork” now start on “my-plan” as intended.

  • Bug Fixes
    • Extracts the plan from the section and strips ultrawork/ulw keywords.
    • Finds plans by exact, then partial match; switches to the matched plan and clears stale boulder state.
    • Handles edge cases: informs when the requested plan is already complete, or lists available incomplete plans when not found.

Written for commit e925ed0. Summary will update on new commits.

When user types '/start-work my-plan ultrawork', the hook now:

1. Extracts plan name from <user-request> section
2. Strips ultrawork/ulw keywords from the plan name
3. Searches for matching plan (exact then partial match)
4. Uses the matched plan instead of resuming stale boulder state

This fixes the bug where '/start-work [PLAN] ultrawork' would:
- Include 'ultrawork' as part of the plan name argument
- Ignore the explicit plan and resume an old stale plan from boulder.json

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@code-yeongyu
Copy link
Owner

@sisyphus-dev-ai review ulw

@kdcokenny
Copy link
Collaborator

lgtm

@kdcokenny kdcokenny merged commit 5e44996 into code-yeongyu:dev Jan 15, 2026
3 checks passed
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.

3 participants