GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Misc chrome polish: header badges, plan sidebar, diff panel, empty state by juliusmarminge · Pull Request #3027 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Needs human review 1 blocking correctness issue found. This PR introduces significant backend changes including Claude Tasks support and refactored token usage handling - beyond the UI polish described in the title. Two unresolved review comments identify potential bugs in the new task management logic. These runtime behavior changes warrant human review. You can customize Macroscope's approvability policy. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
🚀 Expo continuous deployment is ready!
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…l, empty state Ported from #2451. Co-authored-by: ss <[email protected]> Co-Authored-By: Claude Opus 4.8 <[email protected]> Co-authored-by: codex <[email protected]>
7b792af to
76fd697
Compare
Dismissing prior approval to re-evaluate 76fd697
- Track task updates and compact boundaries in provider events - Use current context usage snapshots when available - Clean up markdown file tag icons and remove unused chat header badges
Dismissing prior approval to re-evaluate 26acf66
| function readStringArray(value: unknown): Array<string> { | ||
| return Array.isArray(value) | ||
| ? value.filter((entry): entry is string => typeof entry === "string" && entry.length > 0) | ||
| : []; | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Low Layers/ClaudeAdapter.ts:726
readStringArray includes whitespace-only strings like " " because it checks entry.length > 0 without trimming, while readString trims before validation. This inconsistency allows whitespace-only dependency IDs to enter task.blockedBy via blockedBy, addBlockedBy, or removeBlockedBy — these IDs will never match any real task ID (which readString would reject), creating logical inconsistencies where tasks appear blocked by non-existent dependencies. Consider trimming strings in readStringArray to match readString's behavior.
function readStringArray(value: unknown): Array<string> {
return Array.isArray(value)
- ? value.filter((entry): entry is string => typeof entry === "string" && entry.length > 0)
+ ? value.filter((entry): entry is string => typeof entry === "string" && entry.trim().length > 0)
: [];
}In file @apps/server/src/provider/Layers/ClaudeAdapter.ts around lines 726-730:
`readStringArray` includes whitespace-only strings like `" "` because it checks `entry.length > 0` without trimming, while `readString` trims before validation. This inconsistency allows whitespace-only dependency IDs to enter `task.blockedBy` via `blockedBy`, `addBlockedBy`, or `removeBlockedBy` — these IDs will never match any real task ID (which `readString` would reject), creating logical inconsistencies where tasks appear blocked by non-existent dependencies. Consider trimming strings in `readStringArray` to match `readString`'s behavior.
Evidence trail:
apps/server/src/provider/Layers/ClaudeAdapter.ts lines 722-729 (readString vs readStringArray definitions), lines 772-781 (task IDs validated by readString, blockedBy populated by readStringArray), lines 794-798 (TaskCreate uses readStringArray for blockedBy), lines 823-832 (addBlockedBy/removeBlockedBy use readStringArray).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| blockedBy: new Set(readStringArray(task.blockedBy)), | ||
| }); | ||
| } | ||
| return tasks.size > 0; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium Layers/ClaudeAdapter.ts:784
In the TaskList branch, tasks.clear() is called unconditionally, but the return value tasks.size > 0 only reflects whether tasks exist after processing, not whether the state actually changed. If the previous map had tasks and resultTasks is an empty array, the function clears all tasks (a meaningful state change) but returns false, causing callers to miss that the task list was cleared. Consider tracking whether any change occurred by comparing pre/post state or returning true after tasks.clear() to signal the map was modified.
- return tasks.size > 0; + return true;
In file @apps/server/src/provider/Layers/ClaudeAdapter.ts around line 784:
In the `TaskList` branch, `tasks.clear()` is called unconditionally, but the return value `tasks.size > 0` only reflects whether tasks exist after processing, not whether the state actually changed. If the previous map had tasks and `resultTasks` is an empty array, the function clears all tasks (a meaningful state change) but returns `false`, causing callers to miss that the task list was cleared. Consider tracking whether any change occurred by comparing pre/post state or returning `true` after `tasks.clear()` to signal the map was modified.
Evidence trail:
apps/server/src/provider/Layers/ClaudeAdapter.ts lines 751-784 (function definition, TaskList branch with tasks.clear() and return tasks.size > 0), line 2458-2467 (caller that gates emitClaudeTaskPlanUpdated on the return value)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ate (pingdotgg#3027) Co-authored-by: codex <[email protected]>
…ate (pingdotgg#3027) Co-authored-by: codex <[email protected]>
…ate (pingdotgg#3027) Co-authored-by: codex <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.