Repository navigation
feat(task-comments): let authors delete their own recent comments - #593
Merged
Merged
Conversation
Users could edit a comment but had no way to remove one, which read as a missing permission. Deletion follows the edit rules exactly — own comment, human-authored, younger than TaskComment::EDIT_WINDOW — enforced in the action like update, and company admins get no exception for now. Agent comments stay undeletable because later workflow steps read them. Each deletion records a comment_deleted board activity. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
artempartos
force-pushed
the
artempartos/task-comment-delete-on
branch
from
October 28, 2026 02:18
a41e18f to
efc3f95
Compare
artempartos
added a commit
to Hitin/flow
that referenced
this pull request
Oct 28, 2026
* origin/develop: docs(workflows): describe workflows as sessions made of steps (AixleHQ#595) feat(workflows): open archived workflows read-only in the builder (AixleHQ#594) feat(task-comments): let authors delete their own recent comments (AixleHQ#593) feat(mcp): log the JSON-RPC method and tool name of each MCP call (AixleHQ#592) fix(board): show a run waiting for a session slot as Queued on its card (AixleHQ#591) feat(brand): use the new Aixle Flow lockup and route fonts through tokens (AixleHQ#590) feat(overview): show tokens used and session time instead of token cost (AixleHQ#589) fix(agents): pre-acknowledge Claude Code's cost-threshold notice (AixleHQ#587) test(playwright): QA helpers batch 2 (appRequest, readInertiaPage, shot, probeRoutes, signOut) (AixleHQ#586) test(playwright): plain-JS QA helpers for browser_run_code on staging (AixleHQ#584) feat(runners): add the runners table and the Runner model (AixleHQ#583) refactor(feature-flags): plain cached reads, no usage tooling (AixleHQ#579) # Conflicts: # CHANGELOG.md
artempartos
added a commit
to Hitin/flow
that referenced
this pull request
Oct 28, 2026
* origin/develop: docs(workflows): describe workflows as sessions made of steps (AixleHQ#595) feat(workflows): open archived workflows read-only in the builder (AixleHQ#594) feat(task-comments): let authors delete their own recent comments (AixleHQ#593) feat(mcp): log the JSON-RPC method and tool name of each MCP call (AixleHQ#592) fix(board): show a run waiting for a session slot as Queued on its card (AixleHQ#591) feat(brand): use the new Aixle Flow lockup and route fonts through tokens (AixleHQ#590) feat(overview): show tokens used and session time instead of token cost (AixleHQ#589) fix(agents): pre-acknowledge Claude Code's cost-threshold notice (AixleHQ#587) test(playwright): QA helpers batch 2 (appRequest, readInertiaPage, shot, probeRoutes, signOut) (AixleHQ#586) test(playwright): plain-JS QA helpers for browser_run_code on staging (AixleHQ#584) feat(runners): add the runners table and the Runner model (AixleHQ#583) refactor(feature-flags): plain cached reads, no usage tooling (AixleHQ#579) # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
User feedback: a person could Edit a task comment but found no way to delete it, and asked whether their permissions were wrong. They weren't — deletion didn't exist for anyone.
What
Delete follows the edit rules from #441 exactly:
TaskComment::EDIT_WINDOW(3 hours).Company and project admins get no exception for now (a product decision, open to change later).
Backend
DELETE /api/v1/projects/:project_id/tasks/:task_id/comments/:idCommentsPolicy#destroy?=project_writable?(api + web), record-level check in the action viaTaskComment#deletable_by?(same reason asupdate: the authorize-by-default path hands the policy a symbol, not the record) → 403 on a violationTaskService.destroy_commentrecords acomment_deletedboard activity (tag + body preview in metadata)comment_deletedgets its own description in the board activity feed and in the recent-activity feedFrontend
canEditCommentrulecomment_deletedTests
deletable_by?follows the edit rulesdestroy_commentremoves the row and records the activitycomment_deleteddescriptionDELETELocally: the touched Ruby test files,
rubocopon the changed files,tsc,eslinton the changed files, and the BoardPage + Overview Vitest suites are all green. The full suite runs on CI.🤖 Generated with Claude Code