Skip to content

Adds Choice to Save Command Prefixes to Local Project - #1

Open
McDonald-Andrew wants to merge 11 commits into
mainfrom
CX-000
Open

McDonald-Andrew wants to merge 11 commits into
mainfrom
CX-000

Conversation

@McDonald-Andrew

@McDonald-Andrew McDonald-Andrew commented May 26, 2026 •

Copy link
Copy Markdown
Owner

No description provided.

@McDonald-Andrew McDonald-Andrew self-assigned this May 26, 2026
@McDonald-Andrew
McDonald-Andrew force-pushed the CX-000 branch 11 times, most recently from ebf8dbc to 5c50bf1 Compare June 2, 2026 23:56
@McDonald-Andrew McDonald-Andrew changed the title Cx 000 CX-000: Adds Additional Choice to Save Command Prefixes to Project Jun 15, 2026
@McDonald-Andrew McDonald-Andrew changed the title CX-000: Adds Additional Choice to Save Command Prefixes to Project Additional Choice to Save Command Prefixes to Local Project Jun 15, 2026
McDonald-Andrew pushed a commit that referenced this pull request Jun 15, 2026
## Stack

1. [1 of 3] Support long raw TUI goal objectives - openai#27508
2. [2 of 3] Support long pasted text in TUI goals - openai#27509
3. **[3 of 3] Support images in TUI goals** - this PR

## Why

The first two PRs make goal definitions resilient to long text, but
`/goal` still dropped image inputs from the composer. That meant a user
could attach images while defining a goal and the resulting goal
continuation would not have any useful reference to those images.

Goal state still persists only objective text, so image inputs need to
become paths or URLs that the agent can read later.

## What Changed

- Extends TUI `GoalDraft` with local image attachments and remote image
URLs.
- Copies local goal images through the app-server filesystem layer into
the managed goal attachment directory, then rewrites active image
placeholders to file references.
- Appends unplaced local images and remote image URLs to the objective
as referenced image files or URLs.
- Preserves goal image metadata through live `/goal` submission and
queued `/goal` dispatch.

## Verification

- Added goal materialization coverage for local image files and remote
image URLs.
- Added/updated TUI slash-command coverage showing `/goal` drafts
include attached images instead of dropping them.

## Manual Testing

- Attached an image by bracketed-pasting its local path into a live
`/goal` composer. The `[Image #1]` placeholder became a server-host
`image-1.png` reference, copied bytes matched exactly, and no attachment
was written under the TUI's local home.
- Deleted an image placeholder before submitting a small goal and
verified no image was copied.
- Attached PNG and JPEG files to the same goal. Placeholder order was
preserved as `image-1.png` and `image-2.jpg`, and both remote copies
matched their source bytes.
- Tried extensionless, malformed-extension, and
extension/content-mismatched paths; the composer rejected them as image
attachments before goal dispatch rather than creating misleading managed
image files.
- Combined a local image, a large pasted block, and enough raw text to
exceed 4,000 characters. The remote attachment directory contained the
image, paste sidecar, and `goal-objective.md`; all embedded references
used server-host paths and both payloads matched their sources.
- Submitted an image replacement while a goal was active, verified no
image was copied before confirmation, then canceled and confirmed the
attachment count was unchanged.
@McDonald-Andrew
McDonald-Andrew force-pushed the CX-000 branch 2 times, most recently from 56579c1 to e2b1fde Compare June 16, 2026 00:36
@McDonald-Andrew
McDonald-Andrew force-pushed the main branch 2 times, most recently from d6c8ccb to 2911dc6 Compare June 17, 2026 18:55
@github-actions
github-actions Bot force-pushed the main branch 2 times, most recently from b26fab8 to e20402b Compare June 17, 2026 18:59
@McDonald-Andrew McDonald-Andrew changed the title Additional Choice to Save Command Prefixes to Local Project Adds Choice to Save Command Prefixes to Local Project Jun 17, 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