# task: Allow Rerun action to override properties of task being reran \(\#10468\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/298e9c93878e967fd5cbe48d37ee14073dafaf1a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 298e9c93878e967fd5cbe48d37ee14073dafaf1a

Requested commit: 298e9c93878e967fd5cbe48d37ee14073dafaf1a

Commit: 298e9c93878e967fd5cbe48d37ee14073dafaf1a

Tree: 678a93d5e1829553502ea4a612510e38b48df3bc

Author: Piotr Osiewicz

Committer: GitHub

## Message

````
task: Allow Rerun action to override properties of task being reran (#10468)

For example:
```
"alt-t": [
    "task::Rerun",
     { "reevaluate_context": true, "allow_concurrent_runs": true }
],
```
Overriding `allow_concurrent_runs` to `true` by itself should terminate
current instance of the task, if there's any.

This PR also fixes task deduplication in terminal panel to use expanded
label and not the id, which depends on task context. It kinda aligns
with how task rerun worked prior to #10341 . That's omitted in the
release notes though, as it's not in Preview yet.

Release Notes:

- `Task::Rerun` action can now override `allow_concurrent_runs` and
`use_new_terminal` properties of the task that is being reran.
````

## Parents

- [6e1ba7e936c98102b84cf8ed51aa2757af210d30](https://git.cafe/gitcafe/zed/commit/6e1ba7e936c98102b84cf8ed51aa2757af210d30?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/298e9c93878e967fd5cbe48d37ee14073dafaf1a?format=markdown)
