openclaw - 💡(How to fix) Fix UX: Cron session target dropdown should explain why 'main' is disabled [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#54372Fetched 2026-04-08 01:28:27
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants
  • OpenClaw version: 2026.3.23-2
  • Reported by user during cron configuration
  • User confusion lasted ~30 minutes of troubleshooting

Error Message

  • No hint or error message explaining why

Root Cause

Technical constraint: sessionTarget: "main" requires payload.kind: "systemEvent", while agentTurn requires isolated or current.

RAW_BUFFERClick to expand / collapse

UX Feedback: Cron Session Target Selection UI

Issue

In the Control UI cron form, when creating/editing a cron job with payload.kind: "agentTurn", the main session target option is shown as grayed out (disabled) without any explanation.

Current Behavior

  • User sees main option in dropdown but cannot select it
  • No hint or error message explaining why
  • User confusion: "Why can't I select main?"

Root Cause

Technical constraint: sessionTarget: "main" requires payload.kind: "systemEvent", while agentTurn requires isolated or current.

Suggested Improvements

Option 1: Add Help Text (Recommended)

When main is disabled, show inline hint:

"Main session only supports simple message events. For agent tasks, use Isolated session."

Option 2: Dynamic Option Filtering

Only show valid options based on payload type:

  • systemEvent → show main, isolated, current
  • agentTurn → show isolated, current (hide main)

Option 3: Auto-Switch with Warning

Allow selecting main, but on save:

  • Show warning: "Main session + agentTurn may block your chat. Use Isolated instead?"
  • Auto-switch to current if user confirms

Context

  • OpenClaw version: 2026.3.23-2
  • Reported by user during cron configuration
  • User confusion lasted ~30 minutes of troubleshooting

Priority

Medium - blocks user understanding, not functionality

extent analysis

Fix Plan

To address the issue, we will implement Option 2: Dynamic Option Filtering. This approach ensures that only valid session target options are displayed based on the selected payload type.

Steps:

  • Update the cron form's JavaScript code to filter session target options dynamically.
  • Add a conditional statement to check the payload.kind value and update the options accordingly.

Example Code:

// Get the payload kind and session target elements
const payloadKind = document.getElementById('payload-kind');
const sessionTarget = document.getElementById('session-target');

// Define the valid options for each payload kind
const options = {
  'systemEvent': ['main', 'isolated', 'current'],
  'agentTurn': ['isolated', 'current']
};

// Update the session target options based on the payload kind
payloadKind.addEventListener('change', (e) => {
  const kind = e.target.value;
  const validOptions = options[kind];
  sessionTarget.innerHTML = '';
  validOptions.forEach((option) => {
    const opt = document.createElement('option');
    opt.value = option;
    opt.text = option;
    sessionTarget.appendChild(opt);
  });
});

Verification

To verify the fix, follow these steps:

  • Select a payload kind (e.g., agentTurn) and check that only isolated and current options are available in the session target dropdown.
  • Switch to a different payload kind (e.g., systemEvent) and verify that all three options (main, isolated, and current) are available.

Extra Tips

  • Make sure to update the code to handle any potential errors or edge cases.
  • Consider adding a hint or tooltip to explain why certain options are not available for specific payload kinds.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING