Skip to content

feat: add upcoming goal queue - #393

Merged
chengluyu merged 15 commits into
MoonshotAI:mainfrom
chengluyu:feat/goal-next
Jun 4, 2026
Merged

feat: add upcoming goal queue#393
chengluyu merged 15 commits into
MoonshotAI:mainfrom
chengluyu:feat/goal-next

Conversation

@chengluyu

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue. This PR addresses a TUI workflow gap where users could only assign one autonomous goal at a time and had to return manually after each goal completed.

Problem

Agents can complete narrow goals faster than users expect. When users already know several independent tasks they want to run, assigning only one goal at a time interrupts the workflow and encourages broader combined goals.

What changed

This PR adds a TUI-owned upcoming goals queue for /goal. Users can run /goal next <objective> to queue another goal and /goal next manage to review and change the queue interactively. Queued goals stay hidden from the agent until they become the active goal, and the TUI promotes the next queued goal only after the current goal completes.

The PR also keeps upcoming goals out of RPC and SDK surfaces, documents the new slash command behavior in English and Chinese docs, adds a changeset, and covers persistence, promotion, blocked/paused/cancelled behavior, manager interactions, and autocomplete with tests.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b4943fa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@moonshot-ai/agent-core Patch
@moonshot-ai/kimi-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 01582829dd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/goal-queue-store.ts
Comment thread apps/kimi-code/src/tui/components/dialogs/goal-queue-manager.ts Outdated
Comment thread apps/kimi-code/src/tui/controllers/session-event-handler.ts Outdated
Comment thread apps/kimi-code/src/tui/goal-queue-store.ts Outdated
chengluyu added 5 commits June 4, 2026 12:53
# Conflicts:
#	apps/kimi-code/src/tui/controllers/session-event-handler.ts
#	docs/en/configuration/data-locations.md
#	docs/en/guides/sessions.md
#	docs/en/reference/slash-commands.md
#	docs/zh/configuration/data-locations.md
#	docs/zh/guides/sessions.md
#	docs/zh/reference/slash-commands.md
@pkg-pr-new

pkg-pr-new Bot commented Jun 4, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@b4943fa
npx https://pkg.pr.new/@moonshot-ai/kimi-code@b4943fa

commit: b4943fa

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aefaf07d27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/controllers/session-event-handler.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a35404cf6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/controllers/session-event-handler.ts
Comment thread apps/kimi-code/src/tui/controllers/session-event-handler.ts
Comment thread apps/kimi-code/src/tui/components/dialogs/goal-queue-manager.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b4943fa831

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/controllers/session-event-handler.ts
Comment thread apps/kimi-code/src/tui/controllers/session-event-handler.ts
Comment thread apps/kimi-code/src/tui/goal-queue-store.ts
Comment thread apps/kimi-code/src/tui/controllers/session-event-handler.ts
@chengluyu
chengluyu merged commit beb12ac into MoonshotAI:main Jun 4, 2026
8 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant