Skip to content

fix(desktop): TODOのシステムプロンプトテンプレートが効いていない問題を修正#196

Merged
MocA-Love merged 1 commit into
mainfrom
fix/190-system-prompt-visibility
Apr 16, 2026
Merged

fix(desktop): TODOのシステムプロンプトテンプレートが効いていない問題を修正#196
MocA-Love merged 1 commit into
mainfrom
fix/190-system-prompt-visibility

Conversation

@MocA-Love
Copy link
Copy Markdown
Owner

概要

Issue #190 の対応。「システムプロンプトテンプレートが送られていない気がする / Claude が読めていない気がする」 という報告。

根本原因

  • `customSystemPrompt` は `claude -p --append-system-prompt ` として子に渡されていたが、ユーザーから見て Claude が本当にそれを読んでいるかどうか確認する手段が UI 上になかった。
  • また `--append-system-prompt` のみに依存していたため、仮に Claude 側の取り込みが弱い場面があれば完全に無視されてしまう。

修正

  1. 可視化: supervisor 起動時、`customSystemPrompt` が設定されていれば先頭 200 文字のプレビューを `システムプロンプト` ラベル付きの setup イベントとしてストリームに流す。AgentManager 詳細ペインで「このセッションはどんな指示で動いているか」が一目で分かる。
  2. デリバリ保証: iteration 1 の user プロンプト先頭にも `ユーザー設定のシステム指示(最優先で遵守)` として同内容を注入。`--append-system-prompt` と重複するが Claude は同じ指示が二重に来ても問題なく扱うため、確実に届けることを優先した。

Test plan

  • プリセット付きで TODO 作成→開始→AgentManager 詳細ペインの冒頭にシステムプロンプトのプレビューが表示される
  • Claude の 1 ターン目の挙動にプリセット内容が反映されている
  • プリセット無しの TODO では余計な行が出ず従来どおり動く

Closes #190

--append-system-prompt 経由でプリセット内容を渡していたが、
ユーザーから 「Claude が読めていない気がする」 と報告されていた。
可視化とデリバリ保証の2方向で修正。

- 起動時 setup イベントに customSystemPrompt のプレビュー
  (先頭200文字) を表示してUIで確認できるようにした
- iteration 1 の user プロンプト先頭にも同内容を
  「ユーザー設定のシステム指示(最優先で遵守)」 として注入。
  --append-system-prompt と重複してもClaudeは許容するので
  確実に届くことを優先した

Closes #190
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 15, 2026

Warning

Rate limit exceeded

@MocA-Love has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 55 minutes and 44 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 55 minutes and 44 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 10fafc02-3744-4708-93b4-239d0627d7f9

📥 Commits

Reviewing files that changed from the base of the PR and between 58c8e6f and ddce25a.

📒 Files selected for processing (1)
  • apps/desktop/src/main/todo-agent/supervisor.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/190-system-prompt-visibility

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@MocA-Love MocA-Love merged commit 743802f into main Apr 16, 2026
6 checks passed
@MocA-Love MocA-Love deleted the fix/190-system-prompt-visibility branch April 16, 2026 04:31
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.

[bug] システムプロンプトテンプレートが送られていない気がする

1 participant