feat(KB-341): unify steeringComments and comments into single comments system

- Consolidate steeringComments and comments into unified comments field using TaskComment type

- Remove SteeringComment type, migrate all comments to TaskComment format

- Update addComment to delegate to addTaskComment with auto-refinement for done tasks

- Merge legacy steeringComments data into comments during database migration

- Update dashboard API endpoint from /steer to /comments

- Update executor to use unified comments field for real-time injection

- Update PR comment handler to use addTaskComment method
This commit is contained in:
gsxdsm
2026-04-01 07:44:04 -07:00
parent c1ca8a4316
commit 021055c82a
38 changed files with 1198 additions and 143 deletions

View File

@@ -81,11 +81,11 @@ export class PrCommentHandler {
return;
}
// Build steering comment text
const text = this.buildSteeringText(prInfo, comment, hasCodeSuggestions);
// Build comment text
const text = this.buildCommentText(prInfo, comment, hasCodeSuggestions);
try {
await this.store.addComment(taskId, text, "agent");
await this.store.addTaskComment(taskId, text, "agent");
prMonitorLog.log(`Added comment for PR review #${comment.id}`);
} catch (err) {
prMonitorLog.error(`Failed to add comment for ${taskId}:`, err);
@@ -117,9 +117,9 @@ export class PrCommentHandler {
}
/**
* Build steering comment text from PR review comment.
* Build comment text from PR review comment.
*/
private buildSteeringText(
private buildCommentText(
prInfo: PrInfo,
comment: PrComment,
hasCodeSuggestions: boolean