Working with tasks
Tasks
The one-line task list and its groups, actions on several tasks at once, the task’s header and five tabs, pausing with a reason, links that take you where to act, and Jira.
A task is one issue being worked on in one repository. The task list on the left holds every task of the selected workspace, one line each, grouped by where to look. Selecting a task opens it on its Flow tab: a header with the issue and the task's actions, five tabs, and the Sessions panel under them.
The task list
Each row is one line:
- A dot for the task's state: orange when it waits on you, blue while it runs, green for an open pull request that passes, purple once it is merged or done, and hollow otherwise.
- The issue key, whole, in a column as wide as the longest key in the list. A task with no issue shows the key its branch carries, or a dash.
- The title, from the issue. It is the one thing cut short when the row is narrow. An unread task's title is bold, the way unread mail is. Selecting the task reads its notifications.
- The stage ring for where the task stands and what it is doing (below), then the row's menu (⋯, shown on hover; a right-click on the row opens it too).
- An up arrow before the ring when the task has a high priority (see Priority). It sits beside the ring, never in its place, in the accent colour, and grey while load control is off, where a priority has no effect.
- A green play mark after the title while the task's app runs. Like the arrow, it never takes the ring's place; the app's port is in the hover card.
The stage ring
Every row has one. The ring has an arc for each stage (Setup, Plan, Implement, Test, Review, Gate, Publish, PR): the stages done are filled, and the stage at work fills as it goes, turning orange when it runs longer than usual. A task that is paused or waits keeps its arcs where they were. While a stage agent works (blue, an empty middle or ›_) or the leads decide (teal), the arc at work pulses; with reduced motion on, and in every other state, the ring stays still. On the selected or hovered row the arcs still to come keep a visible track. The ring's colour and the sign in its middle say what the task is doing:
| Ring | Means |
|---|---|
| Blue, empty middle | A stage agent is at work. |
| Blue, ›_ | A stage agent asks for input in its terminal; the pipeline raises it as a question. |
| Blue, clock or dash | A test waits for a free test slot, or the task is giving its slot up (see Load control). |
| Teal | The leads are deciding. |
| Orange, dot | The pipeline asks you something. |
| Orange, ›_ | A stage agent waits for input in its terminal, and the pipeline has raised it to you as its question. |
| Orange, small circle | The task waits for a variable’s value. |
| Orange, two lines | A Jira proposal waits for your approval. |
| Text colour, pause | You or a lead paused the task. |
| Text colour, ›_ | You took over its terminal. |
| Grey, pause | Pause all is on. |
| Grey, hourglass | Load control paused it for memory. |
| Grey, snowflake | Load control froze it. |
| Grey, clock | Queued. |
| Grey, link | It waits for a task it depends on. |
| Grey, curved arrow | Lonca let go of the task; the ring keeps the stage it reached. |
| Grey, dashed | Not handed off yet. |
| Red, ! | The task is stuck. |
| Red, × | Setup failed. |
| Red, dash | The worktree is gone from disk. |
| Red, pause | Setup stopped part way. |
| PR sign | The pull request is watched: grey while in review, red for conflicts, failed checks or changes requested, green once approved, or once its checks are done in a repository that requires no approval. The number of open review comments shows beside the ring when there are any. |
| Grey, × | The pull request is closed. |
| Green, ✓ | The pipeline is done. |
| Purple, ✓ | The pull request is merged (Done, merged). Lonca records the merge the first time it sees it, so the ring is purple from the first draw, even when GitHub cannot be read. |
Hover the ring or click it, or move to the row or the ring with the keyboard, and a card opens with the rest. Hovering the rest of the row does not open it, and a click on the ring does not select the task.
The card on hover
The card gives the title, then the key (a link to the issue, with a copy button), the issue type and the repository, then one line per fact, each only when there is something to say:
- the stage and which agent is at work, with the time left when the stage's usual length is known, else the time so far (or, while the pull request is watched, its checks done of all);
- why setup waits, when the worktree is gone or a crash cut setup short;
- what the pipeline asks, or who paused the task and when, and the reason in their words;
- Priority: High, for a high-priority task (with no effect: load control is off while it is off);
- the pull request's number, verdict (such as Awaiting approval, or No approval needed in a repository that requires none) and size, and how many of its comments are open and wait for you; a click on it opens the pull request, and the copy button beside it copies its link;
- the issue's status (with updated in Jira when it changed since Lonca read it, or Jira no longer finds this issue) and the criteria checked;
- the app and its port, while it runs; when its port is known, a click on it opens the app at
http://localhost:<port>; - the branch and its git status;
- the output tokens;
- the unread notifications.
Groups
By default the list has three groups, and the chosen sort applies inside each:
| Group | Holds |
|---|---|
| Needs you | The pipeline asks, a stage agent waits in its terminal, a task is stuck, a Jira proposal waits, a person’s pause, setup failed or stopped, or the worktree is gone. |
| In progress | Everything else that is live: running, queued, not handed off yet, watching the pull request, or paused by Pause all, load control or a connected assistant. |
| Done | The pull request is merged or the pipeline is done. |
Group by in the list's header changes what the groups gather by:
- Where to look: the three above, the default.
- Lonca stage: the pipeline's stage, in pipeline order, with Not handed off first and Done last.
- Issue status: the issue's status in Jira or the story file, to do before in progress before done, then No status and No issue.
- Start date: when the task was handed off: Today, Yesterday, This week, Last week, This month, then each earlier month; Not started for a task not handed off.
A click on a group's heading folds it, and its tasks are hidden until another click unfolds it. Lonca remembers the folded groups for each Group by choice. The archive is one list, with no groups.
The list's header
Above the list sit the workspace switcher (the repository's name with a single workspace) and its icons: search, sort, group by, filter, and Pick an issue (+). The search field opens from its icon and matches the key, the title and the branch; Esc clears and closes it. A search in force keeps its field open.
- Sort, one at a time: Recently created, Needs me first, Recently updated, Key, Status, PR status.
- Filter, several at once: Has a worktree, Needs action, Running agent, Has a PR, Failing checks. A task must match all of them. Archived shows the archived tasks instead of the others.
- Under Status in the same menu: Merged, PR open, Setup failed, No worktree, Setting up, Ready. A task is in exactly one, so these combine with or: two of them show both kinds.
Clear filters turns them all off. Orchestration is not a row of the list: it is a chip in the title bar (see Handing a task off).
The task's menu
The row's ⋯, a right-click on the row (which does not select it) and the header's ⋯ open the same menu. Each item shows only when it applies. The Open items (the issue, the PR) are each one click, straight in the menu.
| Item | Does |
|---|---|
| Hand off / Hand off… | For a task that is not handed off and not archived. Hand off starts it fresh, with normal priority and no dependencies. A task that could continue where Lonca left it shows Hand off… instead, which opens its hand-off card in Flow. |
| Talk to Task lead about it | Opens the task lead’s conversation on this task, when task leads run. |
| Open with → VS Code, Terminal | Opens the worktree in VS Code or in a Terminal window. Off until the worktree is set up. |
| Show in Finder | Opens the worktree’s folder. Off until the worktree is set up. |
| Open in Jira | Opens the issue in the browser, for a task on a Jira issue while Jira is connected. |
| Open the story file | For a task on a local story: opens its story file. |
| Open the PR | Opens the task’s pull request in the browser, once it has one. |
| Merge the PR… | For an open pull request: opens the merge confirmation. Off while the PR is not ready, with the first reason in the item, for example Merge the PR (no approval). See Merging the PR. |
| Copy → Jira link, PR link, Task ID | Copies one of them, in the order of the Open items above: the issue, then the PR, then the task’s key. An item with nothing to copy stays in the list, off, with why (no Jira issue, no PR, no key). The task ID is the key the row shows, the one its branch carries included. |
| Move to (status) | Moves the issue to another status, the same moves as the header’s status chip (see Moving the issue yourself). The item names the issue’s status now, for example Move to (Development). |
| Skip the gate | Only while the task is at the pre-PR gate (see Tests, the gate and jobs). |
| Raise priority / Lower priority | For a handed-off task, with load control on: a high-priority task gets the machine first. A high priority can be lowered with load control off too. |
| Show the app during E2E | For a repository with an E2E stage: shows the app’s window while its scenarios run. The check before the PR always runs hidden. |
| Save a report… | Saves one file with what it takes to look into something that went wrong in this task, to send on. |
| Archive / Unarchive | See below. |
| Delete… | See below. |
Selecting several tasks
Some actions take several tasks at once. Pick the rows in the list, then choose the action once:
- ⌘-click adds a row to the selection or takes it out; the first one keeps the task already open beside it. ⇧-click adds every row from the last one picked. ⌘A on the list picks every row shown, and Esc clears the selection.
- Only the rows on screen count: a folded group's rows never join an action, and changing the workspace, a filter or the search drops the selection.
- With two or more picked, a bar over the list says N selected, with Actions and a button that clears the selection. A right-click on a picked row opens the same actions. One action takes up to 50 tasks; past that the bar says Bulk actions take up to 50 tasks.
| Action | Applies to |
|---|---|
| Hand off | Tasks not handed off and not archived. A task Lonca let go of is left out: continue it from its hand-off card in Flow. |
| Pause | Handed-off tasks that are not paused or done. |
| Resume | Tasks you paused. One paused by Pause all, by load control or for a variable is left out, with why. |
| Archive / Unarchive | Tasks not archived, or archived. |
| Move to | Tasks with an issue to move. The submenu lists the statuses the issues can move to, each with how many offer it, for example Done (2 of 3). |
| Delete… | Every selected task. |
The menu shows only the actions that apply to at least one picked task, each with how many, for example Pause (2 of 3). The rules are each task's own: a bulk action never does what the task's own controls would not.
- Delete always asks once, Delete 3 tasks, listing them: their worktrees are removed, and their records, branches and context documents are kept. Archive asks only when some of them are at work, with Archive and stop them.
- When it is over, one note says how many went through, and names each task left out or failed, with why. A note that names one stays until you close it.
The task's header
Above the tabs, the header holds the issue on the left and the task's actions on the right.
- The key opens the issue in the browser, and the copy button beside it copies the link. For a local story the key opens the story file, and there is no copy button. The issue type follows the key.
- The title, then the parent, assignee and labels.
- The branch, its git status (↑ commits ahead, ↓ behind, ✎ changed files) and the worktree's path. Before setup it says No worktree yet.
- On the right: the issue's status, a chip with a chevron that moves the issue (see Moving the issue yourself); an up arrow beside it for a high priority; Refresh; Run App or Stop (see Running the app); and the ⋯ menu, the task's menu (see The task's menu).
When Jira cannot be reached (or a story file cannot be read), the header says Last known state and shows the copy Lonca read last, with when. A task with no Jira link says so in one line, and everything else works as usual.
The tabs of a task
| Tab | Holds |
|---|---|
| Flow | The stage rail; where the pipeline stands, with Pause…; what waits on you; the pull request, with a button that copies its link; the brief, Tests (3 runs · 1 failed), Decisions and Setup folds; and the newest line of the orchestration log. A dot on the tab means something waits on you. See The Flow tab. |
| AC | The acceptance criteria, with the count checked (AC 4/7, green when all are done). See Acceptance criteria. |
| Documents | Everything in the task's context folder, to read in place, and the orchestration log. See Task context. |
| Variables | The values the task's app, tests and agents get as their environment, from every layer, with where each comes from. See Variables and secrets. |
| Token | Tokens, or their cost, per stage and per stage agent. The tab carries the output tokens when they can be measured. |
Every task opens on Flow. AC, Documents and Token open once the worktree is set up; Variables opens before, since setup may need a value. While the task is being archived or deleted, the tabs are locked.
The Sessions panel
Under the tabs is the Sessions panel, closed at first: ⌘J shows and hides it, and it can be resized and maximized. Its picker switches between the task's Terminal (your own shell in its worktree, which keeps running when Lonca closes), the task lead, the stage agents, and the stages Lonca runs itself (the gate, the publish, the PR). A command the task lead or the Workspace Lead suggests has Copy and Run beside it; Run runs it in that Terminal. See Sessions and agents.
Notifications
The bell beside Settings in the title bar lists every task's notifications that still hold, newest first, including those whose notice on the task went away, by itself or with its OK. Its badge counts the unread ones, in the colour of the most urgent.
- Each row gives the notification's icon and sentence, the task (its issue key, else its branch) and how long ago it came. An unread row is bold, with a dot.
- A click on a row opens the task on the tab the notification points to. A click on one of Lonca's desktop notifications does the same.
- Opening the menu reads nothing. Mark all read, shown while something is unread, marks every notification read; it dismisses nothing, and a notice whose condition still holds stays on its task.
- A local story drafted in the background that finished while its window was closed adds a Story draft ready row; a click opens the workspace's new story form with the draft (see Writing a local story).
- While the menu is open, the title bar does not drag the window; a click on it closes the menu.
Links that take you there
Wherever Lonca or a lead points you somewhere in the app, the words are a button that takes you there and starts the work: it opens the place and fills it in, and never saves, starts, runs, approves, answers or sends. The last press is yours.
- Where they come from. Lonca's own messages, errors and notices carry the place that fixes the problem; a lead's and the Configurator's replies link places too. Text a lead or a failed sign-in suggests for a form is marked Suggested by ….
- Where they go. A task on one of its tabs, its sessions, its Run control, the notifications, the Decisions tab, a lead's conversation, a Settings section (a repository's card, its sign-in or variables, a workspace's sign-ins), or the Configurator with its form filled in. Settings opens on the section and focuses its first empty field.
- Unsaved Settings wait. While Settings holds unsaved edits, a place waits, with Save or discard your Settings changes first. and Go anyway, which discards them.
- A place that is gone falls back with a one-line note, such as That task is no longer here. or That workspace is saved; it opens after Lonca restarts.
- Text that leaves the app (to Jira, GitHub or a stage agent) carries words instead of a link.
Pausing a task
Pause… on the Flow tab of a handed-off task stops its agents at once, and Lonca starts nothing for it until you resume. It asks What do you need to clarify?: optional, up to 500 characters, and Enter pauses. The reason shows on the row's card and on the paused card. Take over on a stage agent's terminal is the same pause, without a reason.
- A pause by you, or by the task lead or the Workspace Lead (when you ask, or when the Workspace Lead sees something plainly wrong), puts the task under Needs you with a pause in its stage ring, and Flow shows the paused card: who paused it and when, what was stopped, the reason, a field What did you decide?, Resume, and Ask Task Lead about it when the leads run. The rail marks the stage it stopped at as waiting.
- Resume with a note. When the field has text, Resume first adds it to the task's brief under Clarifications, through the brief's own checks, then resumes. Every agent reads it from then on. A note the brief refuses stops the resume, and the card says why.
- You can ask the task lead, or the Workspace Lead, in your own words to pause a task, or several, or to resume them. A task lead pauses its own task; the Workspace Lead any task of its workspace. Pausing every task at once is yours: Pause all.
- Pause all in the title bar stops everything at once; its tasks stay under In progress with a grey pause in their stage rings, and only Resume all ends it. A task load control paused resumes by itself when memory frees.
Jira on pause and resume
For a Jira task, Pause… also offers Move to On Hold in Jira (the status orchestration.jira.on_pause names; without it there is no move to offer) and Post a comment in Jira. Both start unticked, and you decide each time:
- The comment box starts with your reason. What you leave in it is posted as it is, with nothing added, under the Jira account Lonca connects with.
- Resume offers Move back to … in Jira, to the status the issue had, and a comment that starts with what you decided. A pause that moved nothing offers no move back.
- When the task lead or the Workspace Lead pauses or resumes a task for you, it can propose the move and a comment. Nothing reaches Jira until you approve: the proposal is a card on Flow (… proposes for Jira), and the task sits under Needs you with two orange lines in its stage ring. The card starts with what was proposed ticked and the draft in the box; untick either part or edit the comment, then Approve, or Dismiss it. What is ticked is all that is done, and the text in the box is exactly what is posted.
- While proposals wait, the Workspace Lead's conversation shows N Jira proposals wait for you. It opens them all, each with its own choices, and Approve all sends each as it stands after one confirmation that counts the comments and moves.
- Pause all and load control never move an issue or post anything, and a local story is offered neither.
- A move or a comment that fails does not stop the pause or the resume: the task shows a notice.
orchestration:
jira:
on_pause: On Hold # optional; offered on Pause, never moved unaskedRefresh
When an issue changes in Jira after Lonca read it, the header shows Updated in Jira with how long ago, and its Refresh button lights up. Refresh asks first, and says what it does:
- Refresh from Jira rewrites the snapshot and
ac.mdon disk. Your checkmarks and their evidence are kept. - For a local story, Re-read the file updates
ac.md; the story file itself is not written. - For a handed-off task, Lonca then reassesses what changed: it may update the criteria, plan again, or send the work back to implementation. Flow's status line then says Issue changed: with the route it took and why. See When the issue changes.
How the issue moves in Jira
The pipeline moves the issue at three points, to statuses you name (you can also move it yourself, see below). Each name is matched against the target status or the transition's own name, case aside. An issue already at the target status is left alone, and a move that fails is a note on the task and does not stop the pipeline. Every move is recorded, with who made it.
orchestration:
jira:
on_start: In Progress # when implementation starts, after the plan
on_pr: In Review # when the pull request opens
on_merge: Done # when it is merged
on_pause: On Hold # offered on Pause (above)
workspaces:
- id: sales
orchestration:
jira:
on_pr: Code Review # this workspace's own target; null = do not move hereA key left out means the issue is not moved at that point.
Moving the issue yourself
The status chip in the task's header is a menu, and Move to in the task's menu offers the same moves. The first time you open one, Lonca asks Jira which moves the issue offers from where it stands, and lists them under Move to, each named for the status it leads to. The chip and every Move to share that list, and keep it for five minutes while the issue's status stays the same: a move, or a new status read from Jira, reads it again. Lonca checks the move you choose against Jira's list of the moment. Choosing one moves the issue at once: you named where it goes, so nothing asks again. The chip and the task list show the new status straight away; a move Jira refuses puts the old one back. The move is recorded with you as who made it, and it does not raise Updated in Jira.
- For a local story the menu offers the story's statuses, and the one you choose is written to its file.
- When there is nowhere to go, the menu says so (Jira offers no move from …). A move Jira refuses, typically one whose own screen asks for fields, says to move it in Jira; a second move right after the first asks you to try again in a few seconds.
- Without a Jira connection the chip only shows the status, and the task's menu has no Move to.
Lonca reads the statuses of your tasks' issues every three minutes, and again when you come back to its window, so a status someone changed in Jira reaches the list and the header without a Refresh. When Jira no longer finds an issue (it was deleted, or moved out of your account's reach), the task keeps the last status Lonca read: the header's chip is muted and offers no moves, the task's menu has no Move to, and the card on hover says Jira no longer finds this issue. Lonca asks Jira about it again every half hour, and the sign goes once Jira answers for it.
Local stories in the list
A task on a local story works like any other. Its key opens the story file. Opening a task on a story in Ready for Development moves it to Development. The pipeline's three moves above apply to a local story too, when the status they name is one of the six a story can have (on_pr: Code Review, for example); a name that is not shows as a note on the task. Pause and Resume offer no move for a local story. See Workspaces and issues.
Archiving and deleting
Archive
Archive lets the task go: Lonca stops working on it. Unarchive it, and it can be handed off again. When a stage agent is at work on it, Archive the task says what will happen before you confirm with Archive and stop it; otherwise it archives at once:
- its stage agents stop, the app server shuts down and releases its port, and its notifications close;
- the worktree directory stays; only the folders
archive.removenames are cleaned up; - the task can be unarchived later from the row's menu, with the Archived filter on, and handed off again (see Handing a task off again).
archive:
remove: [node_modules, dist] # the default; relative paths inside the worktree only
command: pnpm store prune # optional; run in a shell on archiveDelete
Delete the task cannot be undone, and says what goes and what stays:
- the worktree directory is removed, and the dialog shows its path;
- the task leaves the list; its record and setup history are kept for statistics;
- the branch stays in git;
- Delete the context documents too also removes the whole context folder: the Jira snapshot,
ac.md, the orchestration records, Confluence pages and any files you put there by hand. For a local story the box reads Also delete Lonca's notes for this story (ac.md): the story file and its folder stay. While another round of the same issue, or a subtask in its folder, still uses the folder, the documents are kept and the dialog says so.
A note after an archive or a delete stays in a toast until you close it.