Skip to content

Avatar auto-refresh: low-priority RTOS-style background task, not disabled #771

Closed as not planned

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#771",
  "owner": "claude-tab-1",
  "status": "claimed",
  "evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
  "next_action": "triage scope + assign or close stale"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

Context

Avatar auto-refresh tick was disabled in Docker (tick_interval: None) because the software Vulkan renderer (llvmpipe) crashes ORT via mutex poisoning. This was the right emergency fix but wrong long-term answer.

The Right Design

Avatar refresh is a low-priority background process — RTOS-style scheduling:

  • Priority: Lowest (below all persona cognition, chat, RAG, tools)
  • Frequency: Infrequent — every 5-10 minutes, not 60s
  • Conditional: Only runs when GPU Vulkan is available (skip on software renderer)
  • Preemptable: Yields to any higher-priority work
  • Graceful: If Bevy render fails, log and skip — don't crash ORT

Implementation

  1. Check GPU capability at tick time: if software_renderer { return Ok(()); }
  2. Use ModulePriority::Background (already set)
  3. Increase interval to 300s (5 min) — avatars don't change often
  4. Wrap Bevy render in catch_unwind to prevent ORT mutex poisoning
  5. Re-enable tick_interval: Some(Duration::from_secs(300))

Current State

  • tick_interval: None in avatar.rs — completely disabled
  • Works on native GPU (Mac Metal, Windows NVIDIA)
  • Crashes on Docker software renderer (llvmpipe)
  • Static fallback PNGs used in Docker (colored circles with initials)

Acceptance

  • Avatar tick runs on GPU hardware, skips on software renderer
  • No ORT crashes regardless of renderer
  • Eventually produces real 3D renders when GPU available

Activity

  1. added
    airc-queue
    on May 14, 2026
  2. github-actions commented on Jul 17, 2026

    @github-actions

    This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.

  3. github-actions commented on Aug 18, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

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

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions