docs: fix inaccuracies in rule files from weekly review (#3271)
## Summary
Addresses the two "needs update" items from the weekly rules review in
#3238:
- **`rules/openai-reasoning-models.md`**: Replace reference to
non-existent `filterOrphanedReasoningParts()` with the actual function
`cleanMessage()` in `src/ipc/utils/ai_messages_utils.ts`.
- **`rules/chat-message-indicators.md`**: Replace `"in-progress"` with
`"pending"` to match the actual `CustomTagState` type (`"pending" |
"finished" | "aborted"`) defined in `src/components/chat/stateTypes.ts`.
Closes #3238.
## Test plan
- [x] Verified `cleanMessage()` exists at
`src/ipc/utils/ai_messages_utils.ts:67`
- [x] Verified `CustomTagState` type in
`src/components/chat/stateTypes.ts:1`
- [x] `npm run fmt && npm run lint:fix && npm run ts` passes
- [x] `npm test` passes (1139 tests)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3271"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open in Devin Review">
</picture>
</a>
<!-- devin-review-badge-end -->
---------
Co-authored-by:
Will Chen <7344640+wwwillchen@users.noreply.github.com>
Co-authored-by:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论