Kaimon should not always put a session in the background after 30s #59

Closed
opened 2026-07-10 09:40:50 -07:00 by ufechner7 · 3 comments
ufechner7 commented 2026-07-10 09:40:50 -07:00 (Migrated from github.com)

The timeout for moving sessions to the background should be configurable. I have scripts that run 5 min, and at the end launch a GUI window with the result. I cannot see the result if the session runs in the background.

The timeout for moving sessions to the background should be configurable. I have scripts that run 5 min, and at the end launch a GUI window with the result. I cannot see the result if the session runs in the background.
kahliburke commented 2026-07-10 22:49:58 -07:00 (Migrated from github.com)

@ufechner7 I can pretty easily add a config option as well as making sure that the output of a backgrounded evaluation ends up in the Activity tab of the TUI. Also generally the agent will report the results I need (or the results are available through the REPL for inspection).

I'd also definitely recommend looking at the upcoming Slate project which offers many other methods for interacting with agents and getting interactive results.

New config option:

Image

Here I set the option to 10s, long running task for 20s with results shown.

Image
@ufechner7 I can pretty easily add a config option as well as making sure that the output of a backgrounded evaluation ends up in the Activity tab of the TUI. Also generally the agent will report the results I need (or the results are available through the REPL for inspection). I'd also definitely recommend looking at the upcoming Slate project which offers many other methods for interacting with agents and getting interactive results. New config option: <img width="427" height="240" alt="Image" src="https://github.com/user-attachments/assets/eb2da68e-373e-4c57-8b3f-451c1f86c026" /> Here I set the option to 10s, long running task for 20s with results shown. <img width="612" height="348" alt="Image" src="https://github.com/user-attachments/assets/5c832c7c-4781-407e-9c9c-0a8fea71ccb7" />
kahliburke commented 2026-07-10 23:39:43 -07:00 (Migrated from github.com)

Fixed in 705e767, shipping in v2.0.3.

The auto-background timeout is now configurable — Config tab (b → presets / Never / Custom) or the KAIMON_GATE_PROMOTE_AFTER env var (0 = never promote, so a long script keeps its foreground result/GUI). Additionally, when an eval does promote, the Activity detail pane now shows the finished result once the job completes (previously it stayed on the ' promoted…' placeholder, which a TUI user can't act on).

Fixed in 705e767, shipping in v2.0.3. The auto-background timeout is now configurable — Config tab (`b` → presets / Never / Custom) or the `KAIMON_GATE_PROMOTE_AFTER` env var (`0` = never promote, so a long script keeps its foreground result/GUI). Additionally, when an eval *does* promote, the Activity detail pane now shows the finished result once the job completes (previously it stayed on the '⏳ promoted…' placeholder, which a TUI user can't act on).
ufechner7 commented 2026-07-12 01:22:05 -07:00 (Migrated from github.com)

Thank you so much! Works like a charm.

Thank you so much! Works like a charm.
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
kahliburke/Kaimon.jl#59
No description provided.