[PR #3234] [MERGED] [codex] Fix Echo Chamber triggers and Android background imports #5854

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3234
Author: @SpicyMarinara
Created: 7/5/2026
Status: ✅ Merged
Merged: 7/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/skip-echo-chamber-continue


📝 Commits (4)

  • 328cd5a Skip Echo Chamber on continue generations
  • 4a04f2a Respect Echo Chamber phase overrides
  • 3886997 Respect configured pipeline phases for all agents
  • d16d28d Fix Android background picker uploads

📊 Changes

8 files changed (+25 additions, -36 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 android/app/src/main/java/com/marinara/engine/MainActivity.java (+5 -4)
📝 packages/server/src/routes/generate.routes.ts (+2 -2)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+3 -12)
📝 packages/server/src/services/agents/agent-executor.ts (+3 -2)
📝 packages/server/src/services/agents/default-prompt-migration.ts (+2 -2)
📝 packages/server/src/services/generation/agent-resolution.ts (+3 -4)
📝 packages/shared/src/types/agent.ts (+4 -10)

📄 Description

Summary

  • Prevent Echo Chamber from running on /continue generations.
  • Respect user-configured agent pipeline phases across storage, normal generation, and manual agent retries instead of coercing built-ins back to default phases.
  • Fix Android APK chat background imports by allowing picker-granted content:// upload URIs and safely parsing Android file chooser results, including multi-select.
  • Update the v2.1.0 changelog.

Closes #3233

Root Cause

Echo Chamber and several built-in agents had runtime or normalization paths that overrode the phase saved from the agent editor. Separately, the Android WebView shell disabled content URI access and only returned data.getData() from the file picker, which can produce null or incomplete picker results for Android image imports.

Validation

  • pnpm --filter @marinara-engine/shared lint
  • pnpm --filter @marinara-engine/server lint
  • git diff --check
  • pnpm check

Not Run

  • Android APK build / device smoke test: this shell has no Java runtime, Gradle, or Android SDK configured.

Manual Verification Needed

  • Build/install the Android APK and import one PNG/JPG chat background from the system picker.
  • Repeat with multiple selected backgrounds.
  • Confirm imported backgrounds appear in Settings and can be selected.
  • In an agent editor, change Echo Chamber and another built-in agent to a non-default phase and confirm generation uses that phase.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed Echo Chamber so it only triggers for new messages, not when continuing an existing assistant reply.
    • Built-in agents now keep their selected phase settings instead of being reset to defaults.
    • Android file uploads now work more reliably with picker-selected content:// images and multi-select results.

🔄 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/3234 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/5/2026 **Status:** ✅ Merged **Merged:** 7/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/skip-echo-chamber-continue` --- ### 📝 Commits (4) - [`328cd5a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/328cd5adcfdf030424101b393861e31c42919cd6) Skip Echo Chamber on continue generations - [`4a04f2a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4a04f2a8671deabdbcd6c4f34577a7e3bb59f70f) Respect Echo Chamber phase overrides - [`3886997`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38869971101a216c74bd158c4fea749f116913f0) Respect configured pipeline phases for all agents - [`d16d28d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d16d28d5fffba33a0089f104d5cc9ffb21e16dd6) Fix Android background picker uploads ### 📊 Changes **8 files changed** (+25 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `android/app/src/main/java/com/marinara/engine/MainActivity.java` (+5 -4) 📝 `packages/server/src/routes/generate.routes.ts` (+2 -2) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+3 -12) 📝 `packages/server/src/services/agents/agent-executor.ts` (+3 -2) 📝 `packages/server/src/services/agents/default-prompt-migration.ts` (+2 -2) 📝 `packages/server/src/services/generation/agent-resolution.ts` (+3 -4) 📝 `packages/shared/src/types/agent.ts` (+4 -10) </details> ### 📄 Description ## Summary - Prevent Echo Chamber from running on `/continue` generations. - Respect user-configured agent pipeline phases across storage, normal generation, and manual agent retries instead of coercing built-ins back to default phases. - Fix Android APK chat background imports by allowing picker-granted `content://` upload URIs and safely parsing Android file chooser results, including multi-select. - Update the v2.1.0 changelog. Closes #3233 ## Root Cause Echo Chamber and several built-in agents had runtime or normalization paths that overrode the phase saved from the agent editor. Separately, the Android WebView shell disabled content URI access and only returned `data.getData()` from the file picker, which can produce null or incomplete picker results for Android image imports. ## Validation - `pnpm --filter @marinara-engine/shared lint` - `pnpm --filter @marinara-engine/server lint` - `git diff --check` - `pnpm check` ## Not Run - Android APK build / device smoke test: this shell has no Java runtime, Gradle, or Android SDK configured. ## Manual Verification Needed - Build/install the Android APK and import one PNG/JPG chat background from the system picker. - Repeat with multiple selected backgrounds. - Confirm imported backgrounds appear in Settings and can be selected. - In an agent editor, change Echo Chamber and another built-in agent to a non-default phase and confirm generation uses that phase. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed Echo Chamber so it only triggers for new messages, not when continuing an existing assistant reply. * Built-in agents now keep their selected phase settings instead of being reset to defaults. * Android file uploads now work more reliably with picker-selected `content://` images and multi-select results. <!-- 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:20:12 +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#5854
No description provided.