Skip to content

feat: read the legacy task comment feed (#182) - #224

Merged
mesilov merged 2 commits into
devfrom
feature/182-task-legacy-comments
Nov 23, 2026
Merged

mesilov merged 2 commits into
devfrom
feature/182-task-legacy-comments

Conversation

@mesilov

@mesilov mesilov commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Что сделано

Closes #182.

  • Новая команда task:legacy:comment:list TASK_ID читает ленту комментариев старой карточки задачи, которая не попала в новый чат. Источник — устаревший REST 1.0 task.commentitem.getlist (scope task).
  • Легаси-статус виден в имени (task:legacy:), в описании [legacy] в b24cli list task, в первой строке help, в meta.legacy и в заголовке human-вывода. В --plain пометка уходит в stderr.
  • Обход курсором по ID (start портал игнорирует) с --limit, --all, --before, --after, --max-comments. Неполное чтение — complete=false с comment-budget-exhausted, pagination-no-progress или page-error, exit 3.
  • ERROR_METHOD_NOT_FOUND и ERROR_CORE на первой странице → legacy-comments-unavailable (exit 1), а не пустая лента.
  • Ссылки DOWNLOAD_URL/VIEW_URL вложений отбрасываются в адаптере: в ответе портала они содержат токен auth[ap].
  • task:chat:list добавляет meta.legacyComments = {status: not-checked, command} и подсказку в stderr, без дополнительных запросов.
  • Help, docs/task-usage.md, docs/cli-command-map.md (76 команд), docs/task-jtbd.md (PM-06, AM-06, EMP-07), docs/development.md, CHANGELOG.md.

OpenSpec

Change add-task-legacy-comments: openspec/changes/add-task-legacy-comments/ — proposal, research (MCP документации и проверка портала), design, дельты task-legacy-comments и task-console-runtime, tasks (16/16), evidence.

Проверки

  • make unit — 1391 тест OK; make check, make lint-all, make cli-reference-check, git diff --check — OK.
  • openspec validate add-task-legacy-comments --strict — valid.
  • Live на тестовом портале (только чтение): задача со старыми комментариями и новым чатом, окно последних, оба курсора, пустая лента, несуществующая задача, strict-rest3; токен ни в одном выводе не встречается. Интеграционные группы command:task:legacy:comment:list и command:task:chat:list — OK.

Не проверено

  • Лента длиннее 50 комментариев на портале (многостраничный обход покрыт unit-тестами).
  • Пользователь без доступа к задаче.
  • Портал автора issue и другие редакции.

Перед архивированием

add-weekly-task-report нужно архивировать раньше: обе дельты меняют Exact MVP command registration.

🤖 Generated with Claude Code

Add task:legacy:comment:list for the old task card comment feed that did
not move to the task chat. It reads REST 1.0 task.commentitem.getlist with
an ID cursor and a finite budget, reports source, completeness and partial
reasons, never prints attachment URLs (they carry an auth token), and turns
a missing method or inaccessible task into legacy-comments-unavailable
instead of an empty feed. The legacy status is visible in the name, the
[legacy] list description, help, meta.legacy and the output header.

task:chat:list now declares meta.legacyComments=not-checked so chat
completeness is not read as the completeness of the whole discussion.

OpenSpec change: openspec/changes/add-task-legacy-comments/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mesilov mesilov added this to the 0.3.0 milestone Nov 18, 2026
@mesilov mesilov added the enhancement New feature or request label Nov 18, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant