[PR #8577] [MERGED] feat(mari): a to-do list she keeps, pinned under her latest message #8685

Closed
opened 2026-11-07 17:38:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8577
Author: @ylli-selmani
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ylli-selmani

Base: staging ← Head: feat/mari-todo


📝 Commits (4)

  • bf5b1df feat(mari): a todo tool for her own list of steps
  • 3545828 feat(mari): pin her to-do list under her latest message
  • f771b42 fix(mari): cap each to-do step at 200 characters
  • 87a9544 fix(mari): tell her when to start and tick her to-do list

📊 Changes

16 files changed (+951 additions, -13 deletions)

View changed files

📝 docs/home/professor-mari.md (+4 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+19 -0)
➕ packages/client/src/components/chat/mari/MariTodoList.tsx (+58 -0)
📝 packages/client/src/components/chat/mari/MariTranscript.tsx (+4 -0)
📝 packages/client/src/components/chat/mari/mari-tool-presentation.ts (+24 -0)
📝 packages/client/src/components/chat/mari/use-mari-workspace-run.ts (+9 -0)
📝 packages/client/src/localization/locales/en.json (+6 -0)
📝 packages/client/src/stores/agent.store.ts (+10 -0)
📝 packages/client/src/styles/mari.css (+73 -0)
📝 packages/server/src/services/professor-mari/pi-runtime.ts (+83 -9)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+73 -4)
📝 packages/server/src/services/professor-mari/workspace-message-store.ts (+4 -0)
📝 packages/shared/src/types/chat.ts (+2 -0)
📝 packages/shared/src/types/professor-mari-workspace.ts (+65 -0)
➕ scripts/regressions/professor-mari/mari-todo.regression.ts (+516 -0)
📝 scripts/regressions/professor-mari/pi-runtime.regression.ts (+1 -0)

📄 Description

Linked issue

Closes #8539
Part of #8533

Why this change

  • You can't see where Professor Mari is in a long job, and she has no list of steps to keep herself on track. Her own to-do list fixes both.

What changed

  • A todo tool on both runtimes. Each call replaces the whole list: at most 12 items, one in progress. On classic it is a JSON field beside suggestions.
  • It neither ends her turn nor counts as work. Words plus todo alone carry on to the next round. Words plus chips or a question still end the turn. It never reaches the executor, so the claim audit and the failure counts don't see it.
  • A pinned list under her latest message, with a count ("2 of 3"). Once you write after it, the count becomes "Plan from before your last message" and the list dims.
  • Saved on her reply as extra.mariTodos, only when the run called it, and carried across Send now checkpoints.
  • Live: a todos stream event, and latestRun.todos in the status, so a reloaded page sees it.
  • She remembers it: an unfinished list goes into her continuity prompt, read from the rows.
  • Docs: docs/home/professor-mari.md.

UI precedent: the frame copies MariList/MariRow in mari-primitives.tsx (--mari-hairline, --mari-group-bg, --mari-card-radius, --mari-card-pad-inline). The header follows .mari-list__head, and the file layout follows MariQuestionCard.

Things to know when reviewing

  • A lone todo round counts towards the round limit. It costs a real model request, and not counting it would let a model loop on it past the safety limit.
  • A list lasts for her last 2 replies. A list pinned forever would outlive the job, and one reply would lose it to a quick aside. latestMariTodos in shared holds this rule, for both the prompt and the client.
  • A stale list that is all done is hidden. It says nothing any more.
  • Words beside a lone todo are still claim-audited on the mid-run budget, like a classic stop: false frame.
  • A reply after Send now keeps the list even if it never touched it, because the run's list carries across the checkpoint. It isn't marked stale either, since your message sits above that reply.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-run, for the reviewer to weigh and not as ticked proof:

  • pnpm build, lint, format:check, localization:check and impeccable:check pass, and server and client typecheck clean. pnpm check as a whole was not run.
  • The regressions matching mari pass, 86 of 86, including the new mari-todo, and so do pi-runtime and composer.
  • Browser checks on pi, with a fake local model that calls todo on each round. The list appeared in the first round, and its count and ticks moved each round. A reload during a run brought it back. A Send now message kept it, and a new message after that reply changed it to "Plan from before your last message". That next run's request carried <your_todo_list>.
  • At phone width (375px), a long step wrapped and nothing scrolled sideways. The stale list was viewed in the default theme, dark and light, and in sillytavern dark. The light-mode views changed the theme attribute in the page rather than the setting.
  • sillytavern light was not viewed.
  • Ylli ran a long bundle job (world card, lorebook, onboarding, theme) with DeepSeek V4.1 on pi and on classic. The list showed and updated on both. On pi it once stayed at 0 of 4 after step one was built, and on classic the model made no list until asked, so the prompt now says when to start it and when to tick. That wording came after their test, so it has not been tried on a real model.

Still to do by hand:

  • Manually verify in the browser with a real model on classic that she starts a list unasked for a job of 3 or more steps.
  • Manually verify in the browser with a real model on pi that she ticks a finished step before ending her turn.
  • Manually verify in the browser that a list where every step is done stops showing after your next message.
  • Manually verify in the browser that the list stops showing after two replies that don't touch it.
  • Manually verify in the browser that the thread stays pinned to the bottom when the list grows during a run.
  • Manually verify in the browser with sillytavern selected in Settings, in light mode, that the list is readable.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

[docs-i18n] follow-up: #8578

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8577 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ylli-selmani](https://github.com/ylli-selmani) **Base:** `staging` ← **Head:** `feat/mari-todo` --- ### 📝 Commits (4) - [`bf5b1df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bf5b1dfcf218c8987058cd956b246aea85ffdb46) feat(mari): a todo tool for her own list of steps - [`3545828`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3545828a1edc981a1ecf5b5590816244a55714a6) feat(mari): pin her to-do list under her latest message - [`f771b42`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f771b42f66d657159afdef992bb23bfddb70b591) fix(mari): cap each to-do step at 200 characters - [`87a9544`](https://github.com/Pasta-Devs/Marinara-Engine/commit/87a954417129ef366863876af444a7e7de0aeb89) fix(mari): tell her when to start and tick her to-do list ### 📊 Changes **16 files changed** (+951 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/home/professor-mari.md` (+4 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+19 -0) ➕ `packages/client/src/components/chat/mari/MariTodoList.tsx` (+58 -0) 📝 `packages/client/src/components/chat/mari/MariTranscript.tsx` (+4 -0) 📝 `packages/client/src/components/chat/mari/mari-tool-presentation.ts` (+24 -0) 📝 `packages/client/src/components/chat/mari/use-mari-workspace-run.ts` (+9 -0) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) 📝 `packages/client/src/stores/agent.store.ts` (+10 -0) 📝 `packages/client/src/styles/mari.css` (+73 -0) 📝 `packages/server/src/services/professor-mari/pi-runtime.ts` (+83 -9) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+73 -4) 📝 `packages/server/src/services/professor-mari/workspace-message-store.ts` (+4 -0) 📝 `packages/shared/src/types/chat.ts` (+2 -0) 📝 `packages/shared/src/types/professor-mari-workspace.ts` (+65 -0) ➕ `scripts/regressions/professor-mari/mari-todo.regression.ts` (+516 -0) 📝 `scripts/regressions/professor-mari/pi-runtime.regression.ts` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #8539 Part of #8533 ## Why this change - You can't see where Professor Mari is in a long job, and she has no list of steps to keep herself on track. Her own to-do list fixes both. ## What changed - **A `todo` tool on both runtimes.** Each call replaces the whole list: at most 12 items, one in progress. On classic it is a JSON field beside `suggestions`. - **It neither ends her turn nor counts as work.** Words plus `todo` alone carry on to the next round. Words plus chips or a question still end the turn. It never reaches the executor, so the claim audit and the failure counts don't see it. - **A pinned list under her latest message,** with a count ("2 of 3"). Once you write after it, the count becomes "Plan from before your last message" and the list dims. - **Saved on her reply** as `extra.mariTodos`, only when the run called it, and carried across Send now checkpoints. - **Live:** a `todos` stream event, and `latestRun.todos` in the status, so a reloaded page sees it. - **She remembers it:** an unfinished list goes into her continuity prompt, read from the rows. - Docs: `docs/home/professor-mari.md`. **UI precedent:** the frame copies `MariList`/`MariRow` in `mari-primitives.tsx` (`--mari-hairline`, `--mari-group-bg`, `--mari-card-radius`, `--mari-card-pad-inline`). The header follows `.mari-list__head`, and the file layout follows `MariQuestionCard`. ### Things to know when reviewing - **A lone `todo` round counts towards the round limit.** It costs a real model request, and not counting it would let a model loop on it past the safety limit. - **A list lasts for her last 2 replies.** A list pinned forever would outlive the job, and one reply would lose it to a quick aside. `latestMariTodos` in shared holds this rule, for both the prompt and the client. - **A stale list that is all done is hidden.** It says nothing any more. - **Words beside a lone `todo` are still claim-audited** on the mid-run budget, like a classic `stop: false` frame. - **A reply after Send now keeps the list even if it never touched it,** because the run's list carries across the checkpoint. It isn't marked stale either, since your message sits above that reply. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-run, for the reviewer to weigh and not as ticked proof: - `pnpm build`, `lint`, `format:check`, `localization:check` and `impeccable:check` pass, and server and client typecheck clean. `pnpm check` as a whole was not run. - The regressions matching `mari` pass, 86 of 86, including the new `mari-todo`, and so do `pi-runtime` and `composer`. - Browser checks on pi, with a fake local model that calls `todo` on each round. The list appeared in the first round, and its count and ticks moved each round. A reload during a run brought it back. A Send now message kept it, and a new message after that reply changed it to "Plan from before your last message". That next run's request carried `<your_todo_list>`. - At phone width (375px), a long step wrapped and nothing scrolled sideways. The stale list was viewed in the `default` theme, dark and light, and in `sillytavern` dark. The light-mode views changed the theme attribute in the page rather than the setting. - `sillytavern` light was not viewed. - Ylli ran a long bundle job (world card, lorebook, onboarding, theme) with DeepSeek V4.1 on pi and on classic. The list showed and updated on both. On pi it once stayed at 0 of 4 after step one was built, and on classic the model made no list until asked, so the prompt now says when to start it and when to tick. That wording came after their test, so it has not been tried on a real model. Still to do by hand: - Manually verify in the browser with a real model on classic that she starts a list unasked for a job of 3 or more steps. - Manually verify in the browser with a real model on pi that she ticks a finished step before ending her turn. - Manually verify in the browser that a list where every step is done stops showing after your next message. - Manually verify in the browser that the list stops showing after two replies that don't touch it. - Manually verify in the browser that the thread stays pinned to the bottom when the list grows during a run. - Manually verify in the browser with `sillytavern` selected in Settings, in light mode, that the list is readable. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README) as needed - [x] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) `[docs-i18n]` follow-up: #8578 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:38:54 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8685
No description provided.