From Desktop Pet to Status Awareness: Interaction Design for AI Coding Tools

    This article explains how a lightweight animated character can show the execution state of an AI coding tool, such as waiting for input, processing a request, or finishing a turn. It covers the limits of what the character should communicate, how to model its behavior as a state machine, how to handle concurrent subtasks and stale events, how to protect sensitive information in status text, how to share state logic between GUI and terminal renderers, and how to test for misleading states.

    1. Why a component that “does no work” deserves careful design

    Developer tools are usually judged by efficiency: how much repetitive code they remove, how much debugging time they save, and how many manual steps they eliminate. A character component that only waits, reads a book, and smiles may seem to have little practical value.

    In AI coding scenarios, however, users face a persistent information problem: what stage is the system in right now?

    After a request is submitted, an AI coding tool may be analyzing the input, reading files, running commands, finishing its response, or stopping because of an error. If this information appears only in a continuously scrolling text stream, users must keep reading the output to decide whether they should keep waiting.

    A lightweight character component can serve a different purpose. It does not take part in task decisions. Instead, it translates execution state into a visual signal that is easy to notice.

    For example, a character holding a book while standing may indicate that it is waiting for input. A character reading with its head lowered may indicate that the tool is processing. A brief book raise may indicate that the current turn ended normally. In this design, the character is not an independent assistant. It is a state indicator with a human-like appearance.

    Its value does not lie in completing more work for the user. It lies in lowering the effort required to understand how far the work has progressed.

    Visual appeal, however, does not equal practical value. Whether an interesting component is worth keeping over time still needs to be verified through misjudgment rates, interference with the user’s work, and real usage feedback. Popularity alone does not prove usefulness.

    2. Set boundaries first: the character shows state, not task results

    Before building this kind of component, define what it does not do.

    It does not need to read the full conversation to infer the user’s mood, generate extra persona dialogue, or interrupt the work often to increase engagement. More importantly, it must not present “execution finished” as “the result is correct.”

    For AI coding tools, there are at least three distinct levels:

    • Execution state: whether the task is still running.
    • Execution result: whether the current turn ended normally, or was cancelled, timed out, or failed.
    • Business correctness: whether the generated code meets the requirements, whether testing is sufficient, and whether the changes introduce defects.

    A lightweight character can usually present only the first two levels reliably. Even when the character shows a completion action, that action only means that the agreed normal-completion signal was received. It does not replace testing, code review, or acceptance.

    Therefore, status text should use accurate wording such as “This turn has ended” or “Waiting for input.” It should avoid unverified promises such as “All correct” or “The problem is completely fixed.”

    Clear boundaries keep the component lightweight and reduce the chance that users form incorrect expectations.

    3. Organize behavior as a state machine instead of stacking animation conditions

    1. Few visual states, more detailed internal states

    From the interface, three states (waiting, working, and completed) cover the main needs. During implementation, however, the component must still recognize cases such as cancellation, errors, and broken connections.

    A reliable design separates internal states from visual states:

    Internal situation Visual state Suggested status text
    Task not started Waiting pose Waiting for input
    Main task running Working pose Processing, or the current action category
    Main task finished normally Brief completion pose This turn has ended
    User cancelled the task Return to waiting pose Cancelled
    Execution error Return to waiting or neutral pose Execution interrupted. See details.
    Status source unavailable Neutral idle pose Status temporarily unavailable

    The key distinction is this: the interface can be simple, but the meaning must be unambiguous.

    Cancellation and errors do not need complex animations of their own. However, they must not trigger the same celebratory effect as a normal completion. Otherwise, users may read “stopped” as “finished successfully.”

    2. Completion should be brief feedback

    The completion pose works best as a short moment of feedback before the component returns to the waiting state. The length of this pause is an interaction design parameter. It should be tuned based on user observation and the display environment, not treated as a fixed technical standard.

    The design also needs a higher-priority override rule. If the user starts a new task while the completion pose is still showing, the character must switch to the working state immediately. An old reset timer must not fire later and switch the character back to waiting during the new task.

    This may look like a minor animation glitch, but it is really a race condition between asynchronous events.

    3. Assign every turn a clear owner

    To prevent events from the previous turn from affecting the next one, each main task should have a distinguishable turn identifier. When an event arrives, the component first checks whether it belongs to the current turn, and only then decides whether to update the interface.

    The basic processing flow can be described as follows:

    1. Receive event
    2. → Check the session and turn the event belongs to
    3. → Determine whether it is a current main-task event
    4. → Update the state according to the transition rules
    5. → Refresh the character pose and status text
    6. → Schedule a cancellable delayed reset when needed

    This is a general implementation approach. It does not assume that any host application provides a specific interface. In practice, first confirm which events the host allows the component to access, and what those events mean and in what order they are guaranteed to arrive.

    4. Main tasks and parallel subtasks: avoid frequent pose changes

    An AI coding workflow may include several parallel or nested activities. If each subtask’s start and end events map directly to the character, the interface can switch constantly. It may even show completion before the main task has finished.

    A simple strategy is easier to understand: the character tracks only the lifecycle of the current main conversation. Subtasks serve as supporting information and do not directly determine the completion pose.

    This approach has two benefits.

    First, the visual meaning stays stable. When users see the completion action, they know the main task has finished, not that an internal step just ended.

    Second, it reduces event complexity. Subtasks may run in parallel, fail independently, or be cancelled. Without a reliable parent-child relationship and aggregation rules, the arrival order of events alone cannot show the overall status accurately.

    If the interface must show subtask progress, add text such as “Running multiple steps” instead of changing the character’s expression for each subtask.

    When the host does not provide a clear signal that the main task has ended, do not infer completion from a temporary lack of output alone. Silence may mean the tool is waiting, or it may mean the task is still running.

    5. Status text should be useful and avoid leaking information

    A short line of text below the character can add details that animation cannot express. For example, the current operation can be summarized as one of the following:

    • Reading project content;
    • Searching related information;
    • Running a local task;
    • Waiting for user confirmation;
    • Organizing the output.

    The text should show action categories first, not full parameters.

    File paths may contain personal names or internal project names. Command arguments may contain credentials. Retrieved content may include business information. If these values appear unchanged in a side component, screenshots, screen recordings, or screen sharing may expose them to a wider audience.

    Safer handling includes the following:

    1. Minimal collection: read only the information the status display needs, and do not copy the full session.
    2. Redaction by default: hide sensitive parameters, full paths, and free-form text.
    3. Length limits: truncate long text so it does not crowd the editing area.
    4. Keep the real source of detail: when users need to investigate further, direct them to the host’s existing execution history instead of building a full logging system inside the character component.

    The status component provides an overview. It does not replace audit logs.

    6. GUI and terminal should share semantics, not identical visuals

    1. Separate status logic from rendering

    The same character can use pixel images in a graphical interface and character art in a terminal. The appearance differs, but both should share the same status semantics.

    The implementation can be split into three parts:

    • Event adapter layer: converts the events the host allows the component to access into internal events.
    • State control layer: manages turns, state transitions, and reset timers.
    • Display layer: outputs images, characters, or plain text based on the current state.

    This prevents each interface from implementing its own logic. Otherwise, one interface could show completion while another still shows the task as running.

    2. Terminal layouts need progressive fallback

    Terminal display depends on window width, font proportions, character width calculations, and color support. A full-body character designed for a graphical interface may take up too much space in a terminal.

    For that reason, the terminal version works better with a simplified outline and multiple layout levels:

    • When the width is sufficient, show the character and status text in a side panel.
    • When space is limited, keep only a compact character or a single status line.
    • When the environment cannot draw reliably, fall back to plain text.

    The thresholds that trigger layout changes should be calculated from the character width, the minimum width of the content area, and the spacing. Do not treat a fixed column count as a universal standard.

    Recalculate the layout when the window is resized. This prevents the character from covering main content or leaving visual artifacts.

    3. Prefer host-supported extension areas

    If the host provides an official sidebar, status bar, or extension drawing area, use those locations first. Moving the cursor or overwriting content directly in a shared terminal can conflict with the task output.

    Refreshing the character must not block the main task. If the component fails, the reasonable fallback is to hide the character, not to stop the programming workflow.

    7. Lightweight components still need performance and lifecycle management

    Not doing work does not mean the component has no resource cost. Frequent redraws, duplicate event subscriptions, and leftover timers can turn a decorative component into a burden.

    Follow these principles during implementation:

    Update on events, not through continuous polling.
    Keep the display still when the state does not change. When an animation must play, control how often it updates.

    Merge frequent prompts.
    When several similar actions happen within a short time, combine them into one message. This prevents the status text from flickering rapidly.

    Clean up all resources.
    When the component is closed, the session switches, or the extension is unloaded, remove event listeners, cancel timers, and release display resources.

    Stay conservative when the state is unknown.
    If the state cannot be confirmed, show a neutral message. Do not default to marking the task as successful.

    Let users turn it off.
    People respond to characters differently. Some find that a character makes waiting easier, while others find it distracting. Offering options to hide the character, reduce motion, or keep only text is more reasonable than forcing it on everyone.

    Also, do not rely on color alone to convey state. Combine pose and text so the status remains clear under different visual conditions and preferences.

    8. Testing should focus on misleading states, not just whether it moves

    The most overlooked tests for this kind of component check semantic correctness under unusual event orders.

    At a minimum, cover these cases:

    • Normal start, execution, completion, and reset;
    • The user cancels the task before it finishes;
    • An error occurs during execution;
    • A new turn starts during the completion pose;
    • An end event from an old turn arrives late;
    • The same event is received more than once;
    • A subtask finishes while the main task is still running;
    • The window suddenly shrinks;
    • The status source disconnects and then reconnects;
    • The component is enabled and disabled repeatedly.

    Verification should not focus only on the final image. Also check the state transition log. Recording the event type, the turn identifier, and the state before and after each transition helps reproduce problems. These logs should not include full conversations or sensitive parameters.

    For delayed resets, use a controllable timing mechanism in tests. Relying on real waiting time makes tests slow and unstable.

    Use two sets of acceptance criteria. One set checks whether the character expresses the state correctly. The other checks whether the component leaves the existing workflow unaffected. The work is complete only when both sets pass.

    9. From visual novelty to trustworthy interaction

    A lightweight character component can be a low-risk entry point for interaction experiments. However, initial attention should not push it toward a complex progression system or additional conversation features.

    A better order of iteration is to make the state accurate first, refine the visual feedback second, and add capabilities only when real needs appear.

    If AI coding tools help implement the component, write the requirements as testable constraints. Specify which events may trigger completion, which information must not be displayed, how the layout degrades on narrow windows, and which resources must be cleaned up on close. Generated code is only one part of the implementation. Developers remain responsible for checking event semantics, testing error paths, and validating the component in the actual runtime environment.

    A good technical solution does not have to make the interface busier. For AI coding tasks that involve long waits and internal processes that are hard to see, quiet, accurate, and dismissible status feedback is a worthwhile experience improvement in its own right.

    A character can be charming, but its status must be trustworthy. Only a component that neither overstates results nor interrupts work can move from brief novelty to a useful, long-term interaction element.