Skip to content

Commit 602c821

Browse files
bilalabbadclaude
andcommitted
style(frontend): drop the code reference from the task-status comment
.agents/rules/code-doc-style.md forbids naming other functions in comments. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent d8a3b8f commit 602c821

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/app/src/entities/tasks/ui/task-status.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export function TaskStatus() {
2828
value: currentBranch.name,
2929
};
3030

31-
// constructPath reads window.location, which nuqs updates one render later than the branch
32-
// context, so the branch has to come from currentBranch to avoid linking to the previous one.
31+
// The branch must come from the context, not the URL: nuqs writes it one render later, so a
32+
// param inherited from the URL would still point at the previous branch.
3333
const branchParam: overrideQueryParams = currentBranch.is_default
3434
? { name: QSP.BRANCH, exclude: true }
3535
: { name: QSP.BRANCH, value: currentBranch.name };

0 commit comments

Comments
 (0)