Description
When a task/session is already running, the current template cannot be changed from the UI. The template selector appears locked or the change is ignored until the execution finishes.
Additionally, template state seems to be shared globally across windows/tabs. If I change the template in one window, the template is automatically changed in all other open windows as well, even when they are handling different tasks/sessions.
This creates two problems:
- It is impossible to switch templates dynamically during execution.
- Multiple windows cannot operate independently with different templates.
Expected behavior
- It should be possible to change the template while a task is running, or at least the UI should clearly communicate why it cannot be changed.
- Each window/tab should maintain its own isolated template state.
- Changing the template in one window must not affect other open windows.
Current behavior
- Template changes are blocked or ignored during execution.
- Changing the template in one window propagates the change to every other open window.
Steps to reproduce
- Open two Zoo Code windows/tabs.
- Select different templates in each window.
- Start a task in one of them.
- Try changing the template while the task is running.
- Change the template in the other window.
Result
- The running window does not allow template switching.
- All windows/tabs end up using the same template after a change in any one of them.
Possible cause
Looks like the template selection is being stored in a shared/global state instead of a per-window or per-session state.
Description
When a task/session is already running, the current template cannot be changed from the UI. The template selector appears locked or the change is ignored until the execution finishes.
Additionally, template state seems to be shared globally across windows/tabs. If I change the template in one window, the template is automatically changed in all other open windows as well, even when they are handling different tasks/sessions.
This creates two problems:
Expected behavior
Current behavior
Steps to reproduce
Result
Possible cause
Looks like the template selection is being stored in a shared/global state instead of a per-window or per-session state.