[GH-ISSUE #6254] [Feature]: Improvement of private agent context (follow-up) #3490

Closed
opened 2026-10-21 06:03:36 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @usagirei on GitHub (Sep 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6254

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The implementation of #5945 in PR #5962 works, but the UI experience could be improved.

Currently (For JSON prompt injection mode):

  • The agent last saved output view/edit box shows the prompt injection value - but not its private context
  • When text is empty, it shows the whole json with the agent-context field - but clicking edit opens the editor for the text part only, not the full json with data and agent-context

Proposed solution

On a agent response with agent-context, extract and strip it from the main response
Keep the current box for the agent response, without agent-context
Add a separate box to view/edit the agent-context alone (spoiler rules apply the same as main data)

Alternatives considered

The current box edits the whole JSON response - including agent-context

Additional context

An agent output without the agent-context field should keep the previous context intact instead of deleting it, if not already like this

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @usagirei on GitHub (Sep 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6254 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? <!-- Describe the pain point or gap this feature would address --> The implementation of #5945 in PR #5962 works, but the UI experience could be improved. Currently (For JSON prompt injection mode): * The agent last saved output view/edit box shows the prompt injection value - but not its private context * When `text` is empty, it shows the whole json with the `agent-context` field - but clicking edit opens the editor for the `text` part only, not the full json with data and agent-context ## Proposed solution On a agent response with `agent-context`, extract and strip it from the main response Keep the current box for the agent response, without `agent-context` Add a separate box to view/edit the `agent-context` alone (spoiler rules apply the same as main data) <!-- What would you like to see added or changed? --> ## Alternatives considered <!-- Any other approaches you thought about? --> The current box edits the whole JSON response - including `agent-context` ## Additional context An agent output without the `agent-context` field should keep the previous context intact instead of deleting it, if not already like this <!-- Optional: mockups, related issues, references, or examples --> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#3490
No description provided.