Skip to content

Fix task prompt precedence for slash command expansion#60

Merged
dbpolito merged 1 commit intomainfrom
fix/task-prompt-precedence
Mar 27, 2026
Merged

Fix task prompt precedence for slash command expansion#60
dbpolito merged 1 commit intomainfrom
fix/task-prompt-precedence

Conversation

@dbpolito
Copy link
Copy Markdown
Contributor

@dbpolito dbpolito commented Mar 27, 2026

Ticket

SKIPPED

Description

Use the raw task prompt as the primary source for slash command expansion so multiline context is preserved, while still falling back to command metadata when no prompt is present.

Checklist

Task prompt parsing

  • Prefer the raw task prompt over summarized command metadata when both are present
  • Preserve multiline prompt arguments during slash command expansion

Metadata fallback

  • Continue expanding from command metadata when the raw prompt is missing

Validation

  • Verify that task tool calls keep the original prompt context in expanded command prompts
  • Confirm that command metadata still expands correctly when no prompt is provided

- prioritize the raw task prompt when expanding slash commands so multiline arguments are preserved
- keep command metadata as a fallback when the raw prompt is unavailable
- add regression tests for prompt precedence and fallback behavior
@dbpolito dbpolito self-assigned this Mar 27, 2026
@dbpolito dbpolito merged commit 7cdf001 into main Mar 27, 2026
1 check passed
@dbpolito dbpolito deleted the fix/task-prompt-precedence branch March 27, 2026 15:59
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.

1 participant