[GH-ISSUE #4614] [Issue]: Respect agent connection temperature and default agents to 0.7 #2522

Closed
opened 2026-10-21 05:49:28 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4614

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Agent LLM calls do not respect the standard temperature saved on the connection selected for agents. The executor reads an agent-local settings.temperature value and otherwise hard-codes 0.3; connection resolution forwards only Custom Parameters from the selected connection. The agent fallback temperature should be 0.7.

Expected behavior

  • When the selected agent connection has an enabled temperature value, agent calls use that value. For example, a connection temperature of 0.5 produces an agent request with temperature: 0.5.
  • When no temperature is configured for the agent call, the Engine defaults it to 0.7.
  • Existing provider/model parameter suppression and enabled-parameter rules remain authoritative.
  • Agent debug events show the effective value actually sent to the provider.

Actual behavior

The agent executor resolves temperature only from config.settings.temperature. When that agent-local field is absent, normalizeAgentTemperature falls back to 0.3. Standard connection temperature settings are not included in the resolved agent configuration, so a temperature such as 0.5 on the selected agent connection is ignored.

Steps to reproduce

  1. Configure a language-model connection for agents and save its temperature as 0.5.
  2. Select that connection for an agent or as the default Agents connection.
  3. Enable agent debugging and trigger the agent.
  4. Inspect the agent request event or provider request body.
  5. Observe temperature: 0.3 instead of temperature: 0.5.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Browser debug console; exact browser/app shell not provided

Logs, screenshots, or video

Observed in the agent debug request:

temperature: 0.3

Additional context

Code inspection confirms the resolution path:

  • agent-executor.ts defines DEFAULT_AGENT_TEMPERATURE = 0.3 and calls normalizeAgentTemperature(config.settings.temperature).
  • agent-resolution.ts extracts only customParameters from connection generation defaults for the resolved agent; it does not carry the saved standard temperature or its enabled state.

Add regression coverage for an explicit connection temperature, an unset temperature falling back to 0.7, and any supported disabled/suppressed-temperature path.

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 @SpicyMarinara on GitHub (Aug 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4614 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Agent LLM calls do not respect the standard temperature saved on the connection selected for agents. The executor reads an agent-local `settings.temperature` value and otherwise hard-codes `0.3`; connection resolution forwards only Custom Parameters from the selected connection. The agent fallback temperature should be `0.7`. ## Expected behavior - When the selected agent connection has an enabled temperature value, agent calls use that value. For example, a connection temperature of `0.5` produces an agent request with `temperature: 0.5`. - When no temperature is configured for the agent call, the Engine defaults it to `0.7`. - Existing provider/model parameter suppression and enabled-parameter rules remain authoritative. - Agent debug events show the effective value actually sent to the provider. ## Actual behavior The agent executor resolves temperature only from `config.settings.temperature`. When that agent-local field is absent, `normalizeAgentTemperature` falls back to `0.3`. Standard connection temperature settings are not included in the resolved agent configuration, so a temperature such as `0.5` on the selected agent connection is ignored. ## Steps to reproduce 1. Configure a language-model connection for agents and save its temperature as `0.5`. 2. Select that connection for an agent or as the default Agents connection. 3. Enable agent debugging and trigger the agent. 4. Inspect the agent request event or provider request body. 5. Observe `temperature: 0.3` instead of `temperature: 0.5`. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Browser debug console; exact browser/app shell not provided ## Logs, screenshots, or video Observed in the agent debug request: ```text temperature: 0.3 ``` ## Additional context Code inspection confirms the resolution path: - `agent-executor.ts` defines `DEFAULT_AGENT_TEMPERATURE = 0.3` and calls `normalizeAgentTemperature(config.settings.temperature)`. - `agent-resolution.ts` extracts only `customParameters` from connection generation defaults for the resolved agent; it does not carry the saved standard temperature or its enabled state. Add regression coverage for an explicit connection temperature, an unset temperature falling back to `0.7`, and any supported disabled/suppressed-temperature path. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:49:28 +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#2522
No description provided.