Skip to content

space: 'cu space list' renders raw fields on a cache hit #62

Open

Description

@timimsms

Problem

On a cache hit, cu space list sends the cached []interface{} (decoded JSON maps) straight to the table formatter. The table then shows every raw field instead of the id/name/private/archived columns a cache miss produces.

This is the same kind of bug as #24: untyped data reaching a renderer that expects typed rows. It was found while fixing #24 in #59.

Fix

Decode the cache entry back into []clickup.Space, or cache the typed slice. Then build rows through a single typed function for both the hit and miss paths, as listTableRows does in #59. Add a test that renders from a cache hit.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Nov 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions