stacklok / stacklok/mecatl

Plan mode can't move on to implementation in mecak8s

Open
#1,547 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
152
Forks
16
Avg merge
14h 48m
Merged PRs (30d)
536

Description

Bug description

When connecting mecatui to mecak8s in plan mode, I cannot get the plan card to appear so that I can approve the plan.

Steps to reproduce

  1. Connect to mecak8s mecatui connect <mecak8s_url> --mode plan
  2. Ask for a plan, e.g Create a hello world program in golang

Expected behavior

The plan is shown and I can approve the plan

Actual behavior

The plan is shown, but there is no plan card that lets me approve it and move to implementing it

Additional context

Conversation:

 ▌ you
 │ Create a hello world program in golang

 ● mecatl

   reasoning summary · 3 lines · ctrl+t expand

 ↑17.7K ↓36 · 3.7s

 ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✓ ListDir                                                                                        │
 │ path: "."                                                                                        │
 │ directory is empty                                                                               │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
 ● mecatl

   reasoning summary · 3 lines · ctrl+t expand
   Plan:

   1. Add  main.go  containing a minimal Go  main  package.
   2. Import  fmt  and print  Hello, World!  from  main() .

   No existing files or project configuration are present, so a single source file is sufficient.
 ↑17.8K ↓96 · 5.1s · 100% cached

 ▌ you
 │ Implement the plan

 ● mecatl

   Plan:

   1. Create  main.go  with package  main .
   2. Import Go’s standard  fmt  package.
   3. Implement  main()  to print  Hello, World! .

   No project files exist, so no module or additional configuration is required for this standalone program.
 ↑17.9K ↓132 · 5.6s · 99% cached

 ▌ you
 │ I approve the plan

 ● mecatl

   Plan:

   1. Create  main.go  with package  main .
   2. Import Go’s standard  fmt  package.
   3. Implement  main()  to print  Hello, World! .

   No project files exist, so no module or additional configuration is required for this standalone program.
 ↑18K ↓85 · 10.4s · 99% cached

 ▌ you
 │ Show me the plan card so I can approve the plan

 ● mecatl

   Plan:

   1. Create  main.go  with package  main .
   2. Import Go’s standard  fmt  package.
   3. Implement  main()  to print  Hello, World! .

   No project files exist, so no module or additional configuration is required for this standalone program.
 ↑18.1K ↓169 · 3.9s · 99% cached

 ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✗ PresentPlan                                                                                    │
 │ note: "Minimal standalone Go hello-world program."                                               │
 │ plan: 242 B / 6 lines · "Plan:…"                                                                 │
 │   … ctrl+t expand                                                                                │
 │ plan not approved: plan approval requires an interactive operator                                │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
 ● mecatl

   reasoning summary · 3 lines · ctrl+t expand
   The plan card could not be opened because this session lacks an interactive operator. Send the approval through an interactive session, then I can proceed.
 ↑18.3K ↓68 · 10.1s · 99% cached

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with mecatui connect <mecak8s_url> --mode plan and a plan request, then trace the PresentPlan path and its interactive-operator requirement. Done means the plan card appears in the mecak8s plan-mode session and approving it advances to implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.