Skip to content

feat(autopilot): Mission composer — evolving mission editor, paste, and polish#290

Closed
yanmxa wants to merge 2 commits into
genai-io:mainfrom
yanmxa:feat/autopilot-mission-paste
Closed

feat(autopilot): Mission composer — evolving mission editor, paste, and polish#290
yanmxa wants to merge 2 commits into
genai-io:mainfrom
yanmxa:feat/autopilot-mission-paste

Conversation

@yanmxa

@yanmxa yanmxa commented Jul 9, 2026

Copy link
Copy Markdown
Member

Improvements to the /autopilot Mission composer:

  • Evolving mission editor. The first message sets the mission verbatim; each later message refines the running draft via the copilot (folding the new instruction into the existing mission and replacing it) instead of piling raw turns on. With no model wired, later messages fold in verbatim so briefing still works offline. Renames the injected function reply/respond → refine throughout.
  • Paste support. Implement HandlePaste so bracketed paste reaches the Mission and System Prompt editors (was dropped) — inserts at the cursor, preserves multi-line.
  • Polish. A thin focus-accent rail down the composer's left edge so it reads as the active input field.

The /autopilot Mission composer dropped bracketed paste because the panel
never implemented the paste handler. Implement HandlePaste for the Mission
and System Prompt editors — insert at the cursor, preserve multi-line.

Also add a thin focus-accent rail down the composer's left edge so it reads
as the active input field.

Signed-off-by: Meng Yan <yanmxa@gmail.com>
@san-ci san-ci Bot added the need-rebase label Jul 9, 2026
@san-ci

san-ci Bot commented Jul 9, 2026

Copy link
Copy Markdown

[REBASE NOTIFIER] Hi @yanmxa! This PR is behind the base branch and needs to be rebased.

The lgtm label has been removed and the reviewer will need to re-review after you fix this.

How to fix this

rebase your branch — Run git rebase main locally, then force-push the updated branch.

After fixing:

  • The need-rebase label will be automatically removed
  • Request a new review from the OWNERS file
  • The reviewer can add lgtm once satisfied

The first message sets the mission verbatim; each later message refines the
running draft via the copilot — folding the new instruction into the existing
mission and replacing it — instead of piling raw turns on. With no model wired,
later messages fold in verbatim so briefing still works offline. The dialog
shows the draft evolving in place, with a spinner while a refine runs.

Rename the injected function and its message from reply/respond to refine
throughout, so the names state what it now does.

Signed-off-by: Meng Yan <yanmxa@gmail.com>
@yanmxa yanmxa changed the title feat(autopilot): paste + focus rail in the Mission composer feat(autopilot): Mission composer — evolving mission editor, paste, and polish Jul 9, 2026
@san-ci san-ci Bot added the dco:yes label Jul 9, 2026
@san-ci

san-ci Bot commented Jul 9, 2026

Copy link
Copy Markdown

[REBASE NOTIFIER] Hi @yanmxa! This PR has merge conflicts.

The lgtm label has been removed and the reviewer will need to re-review after you fix this.

How to fix this

resolve the conflicts — Fix the merge conflicts locally, then push the resolved changes.

After fixing:

  • The need-rebase label will be automatically removed
  • Request a new review from the OWNERS file
  • The reviewer can add lgtm once satisfied

@yanmxa

yanmxa commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

Superseded by the direct-editor Mission redesign shipped in v1.21.1. That version makes the Mission dialog a plain text editor — the box holds the whole mission — with ctrl+r refine, native paste, and the focus-accent rail, which together cover this PR's evolving-editor, paste, and polish goals. The branch also now conflicts with main. Closing as obsolete.

@yanmxa yanmxa closed this Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant