Skip to content

[enhancement] Refactor LibraryScreen.kt #8

Closed

Description

@libravault-xyz

Confirmed pure structural refactor. The file is 1120 lines but already has ~15 well-named private composables. The refactor would be splitting some of those (plus the main function's body) into separate files — zero functional change, no bug risk.

Activity

  1. added
    enhancement
    on Jun 4, 2026
  2. added
    status:ready-for-dev
    on Aug 17, 2026
  3. libravault-xyz commented on Aug 17, 2026

    @libravault-xyz
    CollaboratorAuthor

    Triage (2026-08-17): Still valid, and the situation has gotten worse, not better — no refactor PR has ever landed. LibraryScreen.kt is now 1344 lines (up from 1120 when filed) with 16 top-level functions (LibraryScreen + 15 private composables/helpers: VaultManagementSheet, VaultFilterChips, ContinueCard, LibraryItemCard, AllBookmarksSheet, MiniPlayerBar, etc.) — same structural shape the issue described, just bigger.

    Labeling status:ready-for-dev. Scope per issue: split the well-isolated private composables (and the file-scoped applyFormatFilter extension) into separate files under the same package — pure structural move, zero functional change, author already confirmed it's risk-free.

  4. added
    status:needs-info
    and removed
    status:ready-for-dev
    on Aug 17, 2026
  5. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    The dev agent's run failed (crashed or exhausted its turn budget) partway through triage/implementation, before opening a PR — routed to a human instead of silently leaving this on status:in-progress or status:ready-for-dev. See the workflow run.

  6. added
    status:ready-for-dev
    and removed
    status:needs-info
    status:ready-for-dev
    on Aug 17, 2026
  7. added
    status:in-progress
    status:needs-info
    and removed
    status:in-progress
    status:ready-for-dev
    on Aug 17, 2026
  8. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    The dev agent's run failed (crashed or exhausted its turn budget) partway through triage/implementation, before opening a PR — routed to a human instead of silently leaving this on status:in-progress or status:ready-for-dev. See the workflow run.

  9. libravault-xyz commented on Aug 18, 2026

    @libravault-xyz
    CollaboratorAuthor

    Automated pipeline health check: Flagging a pattern, not re-flagging the crash itself (which the bot's own comments above already describe correctly).

    This is now the second consecutive dev-agent run to fail identically on this issue — run 32043614899 at ~15:53 UTC, then again after a retrigger at run 32076294832 at ~22:39 UTC. Pulled the raw execution log for the second run: both times the terminal reason is the same —

    "terminal_reason": "max_turns",
    "errors": ["Reached maximum number of turns (40)"]
    

    This isn't the transient infra flakiness (codeload 429 / permission-check 503) this routine normally treats as safe to retry once — it's the agent genuinely running out of its 40-turn budget mid-implementation (last actions in the second run were still grepping LibraryScreen.kt for call sites to migrate). A bare retrigger is unlikely to succeed a third time without a scope change.

    Not auto-retrying again. Recommend either splitting this refactor into smaller PRs (e.g. one composable extraction at a time) before re-applying status:ready-for-dev, or bumping the dev-agent turn budget for issues of this size — this routine will keep noting the repeat if re-triggered as-is.


    Generated by Claude Code

  10. added a commit that references this issue on Aug 18, 2026
  11. added
    status:ready-for-dev
    and removed
    status:needs-info
    on Aug 18, 2026
  12. github-actions commented on Aug 18, 2026

    @github-actions
    Contributor

    Pipeline is at capacity (3/3 active runs) — skipping this run. Re-apply status:ready-for-dev once activity settles, or re-trigger manually via workflow_dispatch.

  13. added
    status:ready-for-dev
    and removed
    status:ready-for-dev
    on Aug 18, 2026
  14. added
    status:in-progress
    on Aug 18, 2026
  15. added
    status:ready-for-dev
    and removed
    status:ready-for-dev
    status:in-progress
    on Aug 18, 2026
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

    enhancementstatus:ready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions