[PR #1399] [MERGED] [codex] Restore Illustrator run interval parity #5066

Closed
opened 2026-10-22 04:12:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1399
Author: @Xelvanis
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @TheLonelyDevil9

Base: refactor ← Head: codex/issue-1329-illustrator-run-interval


📝 Commits (2)

  • c6bcf3c Restore Illustrator run interval parity
  • 85160f2 Merge remote-tracking branch 'origin/refactor' into codex/issue-1329-illustrator-run-interval

📊 Changes

7 files changed (+577 additions, -20 deletions)

View changed files

📝 src/engine/contracts/types/agent.ts (+1 -0)
📝 src/engine/generation/agent-runner.test.ts (+385 -5)
📝 src/engine/generation/agent-runner.ts (+105 -10)
📝 src/engine/generation/start-generation.test.ts (+50 -0)
📝 src/features/catalog/agents/components/AgentEditor.tsx (+12 -5)
➕ src/shared/lib/agent-cadence.test.ts (+16 -0)
📝 src/shared/lib/agent-cadence.ts (+8 -0)

📄 Description

Linked issue

Closes #1329

Why this change

  • Restores v1.6.1 parity for the built-in Illustrator agent cadence. The refactor had defaulted/treated Illustrator like an every-turn post-processing agent unless manually constrained, so chats could request image prompts much more often than the live version.

What changed

  • Restored the built-in Illustrator runInterval default to 5 messages.
  • Exposed Run Interval in the Agent Editor for Illustrator with Illustrator-specific helper copy.
  • Gated automatic Illustrator post-processing by assistant-message cadence.
  • Kept explicit Illustrator retries immediate, so manual retry actions still bypass the interval.
  • Treated only successful draw decisions as cadence anchors.
  • Supported legacy imported agent-runs.type rows as well as agentType.
  • Anchored cadence by transcript position instead of retry timestamp so older-message retries cannot move cadence backward.

Refactor impact

Primary owner:

  • Engine generation, catalog agent editor, shared agent cadence metadata.

Impact areas reviewed:

  • Automatic post-generation agent resolution.
  • Illustrator retry behavior.
  • Legacy agent-run storage shape compatibility.
  • Agent Editor cadence controls.
  • Upstream refactor merge conflict areas: tool-runtime extraction and Discord mirror tests.

Boundary notes:

  • Engine cadence logic stays in src/engine and does not import React, Tauri, feature internals, or shared API adapters.
  • React UI changes stay in src/features/catalog/agents/components/AgentEditor.tsx.
  • Shared cadence display metadata stays in src/shared/lib/agent-cadence.ts.
  • No raw Tauri or remote-runtime fetch wiring was added.

Pressure points touched:

  • src/engine/generation/agent-runner.ts
  • src/engine/generation/start-generation.test.ts
  • src/features/catalog/agents/components/AgentEditor.tsx
  • src/shared/lib/agent-cadence.ts
  • src/engine/contracts/types/agent.ts

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Agent-run local proof:

  • pnpm test src/engine/generation/agent-runner.test.ts src/engine/generation/start-generation.test.ts src/shared/lib/agent-cadence.test.ts
  • pnpm typecheck
  • pnpm check:architecture
  • cargo check --manifest-path src-tauri/Cargo.toml

Manual verification notes

  • Launched the native app through the Tauri dev path.
  • Opened Agents -> Illustrator.
  • Verified Run Interval is visible for Illustrator.
  • Verified the value defaults to 5.
  • Verified the unit displays as messages.
  • Verified the helper copy is Illustrator-specific.
  • Live image-provider generation was not exercised.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Notes:

  • No changelog file exists in this checkout, so no changelog update was made.
  • No docs or repo skill changes were required for this narrow parity fix.
  • This PR does not restore old staging/package-workspace/release claims.

UI evidence

  • Visible UI changed in the Agent Editor, but no public screenshot/recording was attached.

Summary by CodeRabbit

  • New Features

    • Illustrator agent now supports configurable Run Interval setting to control how frequently it runs based on assistant message cadence.
  • UI Enhancements

    • Run Interval field expanded in the agent editor to include Illustrator agent alongside Narrative Director, with contextual help text.

Review Change Stack


🔄 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/1399 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/27/2026 **Status:** ✅ Merged **Merged:** 5/27/2026 **Merged by:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Base:** `refactor` ← **Head:** `codex/issue-1329-illustrator-run-interval` --- ### 📝 Commits (2) - [`c6bcf3c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c6bcf3c43c74bbe9d8788fcd3eebd4897acc0370) Restore Illustrator run interval parity - [`85160f2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/85160f254db9005408ed103421372775de82857f) Merge remote-tracking branch 'origin/refactor' into codex/issue-1329-illustrator-run-interval ### 📊 Changes **7 files changed** (+577 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/contracts/types/agent.ts` (+1 -0) 📝 `src/engine/generation/agent-runner.test.ts` (+385 -5) 📝 `src/engine/generation/agent-runner.ts` (+105 -10) 📝 `src/engine/generation/start-generation.test.ts` (+50 -0) 📝 `src/features/catalog/agents/components/AgentEditor.tsx` (+12 -5) ➕ `src/shared/lib/agent-cadence.test.ts` (+16 -0) 📝 `src/shared/lib/agent-cadence.ts` (+8 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1329 ## Why this change - Restores v1.6.1 parity for the built-in Illustrator agent cadence. The refactor had defaulted/treated Illustrator like an every-turn post-processing agent unless manually constrained, so chats could request image prompts much more often than the live version. ## What changed - Restored the built-in Illustrator `runInterval` default to 5 messages. - Exposed Run Interval in the Agent Editor for Illustrator with Illustrator-specific helper copy. - Gated automatic Illustrator post-processing by assistant-message cadence. - Kept explicit Illustrator retries immediate, so manual retry actions still bypass the interval. - Treated only successful draw decisions as cadence anchors. - Supported legacy imported `agent-runs.type` rows as well as `agentType`. - Anchored cadence by transcript position instead of retry timestamp so older-message retries cannot move cadence backward. ## Refactor impact Primary owner: - Engine generation, catalog agent editor, shared agent cadence metadata. Impact areas reviewed: - Automatic post-generation agent resolution. - Illustrator retry behavior. - Legacy agent-run storage shape compatibility. - Agent Editor cadence controls. - Upstream `refactor` merge conflict areas: tool-runtime extraction and Discord mirror tests. Boundary notes: - Engine cadence logic stays in `src/engine` and does not import React, Tauri, feature internals, or shared API adapters. - React UI changes stay in `src/features/catalog/agents/components/AgentEditor.tsx`. - Shared cadence display metadata stays in `src/shared/lib/agent-cadence.ts`. - No raw Tauri or remote-runtime fetch wiring was added. Pressure points touched: - `src/engine/generation/agent-runner.ts` - `src/engine/generation/start-generation.test.ts` - `src/features/catalog/agents/components/AgentEditor.tsx` - `src/shared/lib/agent-cadence.ts` - `src/engine/contracts/types/agent.ts` ## Validation <!-- Checkboxes intentionally left unchecked per template instruction until a human verifies them. --> - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant Agent-run local proof: - `pnpm test src/engine/generation/agent-runner.test.ts src/engine/generation/start-generation.test.ts src/shared/lib/agent-cadence.test.ts` - `pnpm typecheck` - `pnpm check:architecture` - `cargo check --manifest-path src-tauri/Cargo.toml` ### Manual verification notes - Launched the native app through the Tauri dev path. - Opened Agents -> Illustrator. - Verified Run Interval is visible for Illustrator. - Verified the value defaults to `5`. - Verified the unit displays as `messages`. - Verified the helper copy is Illustrator-specific. - Live image-provider generation was not exercised. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims Notes: - No changelog file exists in this checkout, so no changelog update was made. - No docs or repo skill changes were required for this narrow parity fix. - This PR does not restore old staging/package-workspace/release claims. ## UI evidence - Visible UI changed in the Agent Editor, but no public screenshot/recording was attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Illustrator agent now supports configurable Run Interval setting to control how frequently it runs based on assistant message cadence. * **UI Enhancements** * Run Interval field expanded in the agent editor to include Illustrator agent alongside Narrative Director, with contextual help text. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1399?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:56 +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#5066
No description provided.