Desktop Task Status Indicators for AI Coding Assistants: Design and Practice
Long-running AI coding tasks can take minutes, and developers often need to keep working in other windows without repeatedly switching back to check progress. A desktop-level floating status indicator can make progress visible at the edge of attention while keeping the user’s focus intact. This article covers the design constraints, event-driven state model, polling versus push delivery, visual mapping, privacy boundaries, notification strategy, evaluation metrics, common pitfalls, and practical implementation order.
Why “At-a-glance” status matters
When using an AI coding assistant, developers often hand off a long-running task and switch to another window. The task may involve reading code, modifying multiple files, running tests, and other steps that can take anywhere from tens of seconds to more than ten minutes. After switching away, the only way to know what is happening is to return to the original window repeatedly. That breaks focus and adds context-switching overhead.
Each return trip also requires the developer to reload context, recall what was already done, and reconsider decisions that may be waiting. This cognitive cost is usually much higher than the cost of checking a single status value. For that reason, progress information should be placed at the edge of the user’s visual field rather than requiring the user to go find it.
This kind of design answers “is the task making progress?” It does not answer “is the result correct?” The lighter the status cue becomes, the more reliable its underlying state source must be.
Three design principles
1. Low interruption
Status information should remain at the visual periphery. Colors and animations should be restrained and should not compete with the editor or the code the user is currently working on. High-frequency animation makes it difficult to concentrate, so static color blocks or slowly changing visuals are preferable.
2. High distinguishability
The actionable states—running, waiting for input, succeeded, and failed—must be distinguishable without reading text. Subtle color differences alone easily fail for color-blind users or when viewed from a distance, so state should also be encoded with shapes or icons.
3. Graceful degradation
Users should be able to turn off the floating indicator at any time. Even after it is disabled, the same information should still be available through system notifications or task logs. No presentation layer should be the only information outlet.
Where status comes from: an event-driven state model
The floating indicator is only the presentation layer. The status itself needs a reliable source. A task lifecycle should be modeled as a finite state machine, with legal transitions declared explicitly. That avoids contradictions caused by random status updates scattered throughout the codebase.
Common states include:
- idle: no task is currently running.
- running: the task is executing, including model calls, file reads and writes, and command execution.
- waiting_input: the task is paused and needs user confirmation or additional information.
- succeeded: the task finished normally.
- failed: the task stopped abnormally or was interrupted.
Legal transitions should be explicit. For example, idle can only move to running, and succeeded or failed can only move back to idle. Illegal transitions should raise an exception instead of silently overwriting the previous state, so reporting bugs surface early.
from dataclasses import dataclass, fieldfrom enum import Enumimport timeclass TaskState(Enum):IDLE = "idle"RUNNING = "running"WAITING_INPUT = "waiting_input"SUCCEEDED = "succeeded"FAILED = "failed"# Explicitly declare allowed state transitionsALLOWED_TRANSITIONS = {TaskState.IDLE: {TaskState.RUNNING},TaskState.RUNNING: {TaskState.WAITING_INPUT, TaskState.SUCCEEDED, TaskState.FAILED},TaskState.WAITING_INPUT: {TaskState.RUNNING, TaskState.FAILED},TaskState.SUCCEEDED: {TaskState.IDLE},TaskState.FAILED: {TaskState.IDLE},}@dataclassclass TaskStatus:state: TaskState = TaskState.IDLEupdated_at: float = field(default_factory=time.time)def transition(self, target: TaskState) -> None:if target not in ALLOWED_TRANSITIONS[self.state]:raise ValueError(f"Illegal state transition: {self.state.value} -> {target.value}")self.state = targetself.updated_at = time.time()
The key benefit is that legal transitions are declared in one place. When adding a new state or changing the workflow, you only need to update this table and add unit tests for it, instead of auditing every call site.
Push or polling?
There are two common ways for the presentation layer to receive state.
Polling means the display layer reads the current state at a fixed interval. It is simple to implement, but it introduces delay. If the interval is too short, it wastes resources. If it is too long, the displayed state becomes stale. For progress indicators that do not require sub-second accuracy, a polling interval of one to two seconds is usually enough.
Push means the task executor actively emits an event whenever the state changes. This gives lower latency and more efficient resource usage, but it requires handling disconnects, lost events, and reconnection.
In most cases, a practical recommendation is to have the task executor write a lightweight local state file or use a local socket when state changes, while the display layer reads it at a low frequency. This balances implementation cost with reliability.
Regardless of the delivery method, each state update should include a timestamp. If the display layer sees that the state has not been updated for a long time, it should show “unknown” instead of continuing to display an old “running” state. This detail is easy to overlook, but it directly affects whether users trust the information.
Visual mapping: translating state into signals
The mapping from state to visual presentation should be maintained centrally rather than hardcoded as colors scattered throughout the UI. The following is a reference mapping. Actual values should be adjusted according to the team’s design system and accessibility requirements.
from dataclasses import dataclass@dataclass(frozen=True)class Indicator:color: strshape: stranimation: strlabel: strINDICATORS = {"idle": Indicator("gray", "circle", "none", "Idle"),"running": Indicator("blue", "ring", "slow_pulse", "Running"),"waiting_input": Indicator("amber", "triangle", "blink_once", "Waiting for input"),"succeeded": Indicator("green", "check", "none", "Succeeded"),"failed": Indicator("red", "cross", "hold", "Failed"),}
Color and shape should be encoded together so color-blind users can still distinguish states. The waiting-for-input state should blink once and then remain steady, rather than blinking continuously. Continuous blinking creates anxiety and makes it difficult to focus on other work. The failed state should also provide a clear entry point so the user can jump to logs or error details.
Privacy and permission boundaries
Because a floating indicator often runs above all user windows, its data boundary must be strictly limited.
- Only state code, timestamp, and task identifier should be passed. Code snippets, file paths, and conversation content should not be included.
- Status communication should stay on the local machine. It should not be reported over the network unless the user explicitly authorizes it.
- The floating window should request only the minimum display permission it needs and should not read the contents of other windows.
- Logs should not include keys, tokens, or other credentials. The display layer should not show them either.
These constraints may seem conservative, but they determine whether users are willing to keep the feature enabled long term. Once users suspect that the display layer is collecting unrelated data, usage drops quickly.
Division of labor with system notifications
The floating indicator is good for continuous progress, such as “the task is still running.” System notifications are better for events that need immediate attention, such as “the task is waiting for input” or “the task failed.” The two channels should have clear responsibilities and avoid showing the same event twice.
A practical rule is:
- When state changes to running or succeeded, update the floating indicator only.
- When state changes to waiting_input or failed, update the floating indicator and also trigger a system notification.
- If waiting_input remains unresolved for too long, the system can remind the user again, with gradually increasing intervals to avoid notification overload.
Measuring whether the feature works
This kind of feature can easily be treated as decoration, so observable metrics should be defined before launch.
- Status awareness time: the average interval from a state change to the user noticing it. This reflects whether the visual signal is visible enough.
- Window switch count: how often the user returns to the original task window per unit time. A decrease means the user can get information without switching windows.
- False report and missed update rate: the rate at which the displayed state differs from the actual state. This is the highest-priority metric to fix.
- Disable rate: the percentage of users who turn off the floating indicator. A consistently high rate usually means the feature is too intrusive.
Qualitative feedback also matters. If users say “I see the indicator, but I do not know what to do,” the status information is missing actionable guidance. The UI should then add a next-step suggestion or a clear entry point.
Common pitfalls
First, do not assume that a more animated or colorful indicator is better. Too much motion and color distracts attention and violates the low-interruption principle.
Second, do not treat the floating indicator as the only source of information. If the presentation layer fails, users would lose all progress visibility. Logs and notifications must remain available.
Third, do not ignore stale state. If the state has not updated for a long time, showing “running” misleads users. The display should show unknown state or detect the anomaly.
Fourth, do not put business logic in the display layer. State decisions belong to the task executor. The display layer should only map and render state, otherwise the two sides gradually become inconsistent.
Practical implementation order
When building this feature, it is best to work in this order:
- Model the task lifecycle with a state machine and event model, and make sure the state source is reliable.
- Implement a minimal visual mapping that covers the four or five core states.
- Add privacy constraints and a degradation mechanism.
- Run a small rollout and collect the metrics.
- Decide whether to extend the feature based on the measured results, such as adding an aggregated view for multiple parallel tasks.
Multiple parallel tasks require separate design. When several tasks are running at once, the floating indicator should prioritize tasks that need user action, such as waiting for input or failed tasks. Running tasks can be collapsed into a single count indicator so the interface is not filled with many state icons.
Overall, placing task status at the visual periphery is about reducing cognitive load. Its value depends on three things: a reliable state source, restrained visual expression, and clear data boundaries. When those are in place, the feature can genuinely save time and attention in long-running AI coding assistant workflows.
