8000 fix(mfile): a task ignores timeout from [defaults] and [defaults.task] · Issue #3885 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(mfile): a task ignores timeout from [defaults] and [defaults.task] #3885

Backlog

Description

@agent-137

What happens

A task box reads timeout only from its own [tasks.<name>] table. A timeout in [defaults]
or [defaults.task] does not apply to a task, and nothing says that it is ignored.

The design says [defaults] and [defaults.task] merge into every task (architecture.md lines
1293 and 1319, BOX-064). Session entries already read timeout from the expansion, which folds
in [defaults].

Where (main at f0ccb30)

  • crates/mfile/src/spec.rs:318-330: BoxSpec::for_task builds the spec from
    settings_of(&task.extra), the task's own table only.
  • crates/mfile/src/spec.rs:280-309: for_session_entry reads timeout from the expansion.
  • crates/minimal/src/task.rs:1660-1667: min task run takes the task spec from for_task.

Repro

[defaults.task]
timeout = "5s"

[tasks.sleepy]
bash = "sleep 30"

By the code above, min task run sleepy runs for the full 30 s (not run by hand). Expected: the box ends at 5 s and the command
exits 124.

Expected

A task's timeout comes from the expansion, as a session's does: the task's own value, else
[defaults.task], else [defaults].

Found by the arch review of #3884, which documents the current behaviour in
docs/reference/minimal-dot-toml.md and links this issue.


This is a residual of epic #2236 (BOX).

Activity

  1. added
    priority:nice-to-have
    on Nov 30, 2026
  2. added
    release:0.8.0
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:nice-to-haverelease:0.8.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0