Skip to content

render skills list and render skills remove panic with -o text, json or yaml #79

Done

Description

@gorban

render skills list -o text (and -o json, and any non-TTY run, which auto-switches to text)
panics instead of printing the list. Seen in v2.35.0 and still in v2.40.0 on linux/amd64.

$ render skills list -o text
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xc026c7]

goroutine 1 [running]:
github.com/render-oss/cli/pkg/tui.(*StackModel).Push(...)
	github.com/render-oss/cli/pkg/tui/stack.go:105 +0x47
github.com/render-oss/cli/cmd.init.func16(...)
	github.com/render-oss/cli/cmd/skillslist.go:40 +0x172

Cause. cmd/skillslist.go always pushes the TUI view with
tui.GetStackFromContext(ctx).Push(...). When the output format isn't interactive there's no
stack in the context, so Push runs on a nil *StackModel.

Suggested fix. Check the output format first. For text, json and yaml, print the skills
directly, as other list commands do, and push the TUI view only in interactive mode. A test that
runs skills list -o json without a TTY would cover it. Happy to open a PR. Fixed in #80.

Update: render skills remove crashes the same way. Without --all or --skill it always opens its picker, so with -o text (even in a terminal), -o json, or no TTY it hits the same nil *StackModel. --confirm doesn't avoid it. Reproduced with v2.40.0:

$ render skills remove --confirm --tool claude --scope user -o text
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xc026c7]

goroutine 1 [running]:
github.com/render-oss/cli/pkg/tui.(*StackModel).Push(...)
	github.com/render-oss/cli/pkg/tui/stack.go:105 +0x47
github.com/render-oss/cli/cmd.init.func17(...)
	github.com/render-oss/cli/cmd/skillsremove.go:58 +0x2c5

#80 fixes both: skills list prints the list, and skills remove returns --all or --skill is required in non-interactive mode. render skills update and bare render skills have the same problem and are left for a follow-up.

Activity

  1. changed the title [-]`render skills list` panics with a nil pointer when output isn't interactive[/-] [+]`render skills list` and `render skills remove` panic with a nil pointer when output isn't interactive[/+] on Dec 3, 2026
  2. changed the title [-]`render skills list` and `render skills remove` panic with a nil pointer when output isn't interactive[/-] [+]`render skills list` and `render skills remove` panic with `-o text`, `json` or `yaml`, even in a terminal[/+] on Dec 3, 2026
  3. changed the title [-]`render skills list` and `render skills remove` panic with `-o text`, `json` or `yaml`, even in a terminal[/-] [+]`render skills list` and `render skills remove` panic with `-o text`, `json` or `yaml`[/+] on Dec 3, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions