Skip to content

Milestone 7 run build exec logs copy#4

Merged
barscn merged 13 commits into
mainfrom
milestone-7-run-build-exec-logs-copy
Jun 29, 2026
Merged

Milestone 7 run build exec logs copy#4
barscn merged 13 commits into
mainfrom
milestone-7-run-build-exec-logs-copy

Conversation

@barscn

@barscn barscn commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

barscn and others added 13 commits June 29, 2026 09:11
Grounded against container v1.0.0 --help (run/build/exec/copy/logs/machine run).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
- TaskState gains a neutral .cancelled (not a failure; grey, still retryable)
- OperationKind gains build/run/export/systemStart/copy
- ProgressParser promotes a task to determinate progress on a clean NN% line
- TaskCenter.cancel() cancels the driver (terminates the child via stream teardown)
- Activity pane + TaskTranscriptView: Stop button + linear progress

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
Both route through the TaskCenter when wired (visible, cancellable, raw
transcript on failure); the no-center path is kept for previews/tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
- RunConfiguration/BuildConfiguration own a computed argv (single source of
  truth shared by the adapter and the domain terminal-request builder)
- ContainerFileEntry + lenient ls -la parser for the copy file browser
- ContainerBackend: runContainer (detached, returns id), buildImage (stream),
  copyTo/FromContainer, fetchLogs (snapshot/tail/boot), listContainerDirectory
- CLICommand emits canonical 'copy' (not 'cp'); MockBackend records all inputs

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
…inal, triage)

- CommandTokenizer splits quoted command strings into argv
- validatedConfiguration() maps the draft to a RunConfiguration (field errors)
- commandPreview is the live 'Run Inspector'; runDetached registers a .run task
  + reloads; runInTerminal emits a .runInteractive TerminalRequest (or copies)
- failed detached runs keep triage state (resolve image / inspect logs / retry)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
- QuickRunSheet: image/name + dynamic port/env/volume rows + command override,
  live command preview (Run Inspector), interactive→terminal / detached→task
- RunFailureTriageView: resolve image / inspect logs (transcript) / retry in terminal
- ImageListView gains a Run toolbar button + 'Run Image…' context action
- composition: RunModel wired through the view chain; taskCenter now injected
  into SystemStatusModel + ContainerLifecycleModel for export/system-start tasks

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
…rt, plain retry)

- BuildModel: draft + presets (standard/no-cache/plain), validation, streaming
  .build task (reloads images on success), retryPlain() forces --progress plain
- BuildSheet: drag/drop or choose a context folder, tag/Dockerfile/build-arg rows,
  live TaskTranscriptView (raw output never hidden), Export Transcript, plain retry
- ImageListView gains a Build toolbar button; buildModel wired through composition

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
…llback

- ContainerLifecycleModel: execShell(id:command:) (custom command), openMachineShell,
  openInExternalTerminal (detach fallback seam)
- ExecSheet: command field + live preview, Run (embedded terminal) or Open in Terminal.app
- Container row menu: Open Shell + Exec… for a single running container
- embedded terminal header gains an 'Open in Terminal.app' detach button
- AppEnvironment writes an executable .command script + opens it via NSWorkspace

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
…h/save)

- LogsModel: follow stream or bounded snapshot, case-insensitive search filter,
  saveable transcript, cancellable
- LogsPaneView: follow/tail/boot controls, search, reload, save, auto-scroll
- LogWindow: a detachable Window scene hosting the pane
- container row 'Logs…' action starts capture + opens the window;
  View ▸ Open Log Window (⇧⌘L) command; logsModel wired through composition

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
…lidation

- CopyModel: direction, host URL + container id:path with early validation
  (absolute path required, with an example), .copy Activity task, best-effort
  container directory browse (mapped to a UI-facing ContainerFileItem)
- CopySheet: direction control, host drop-zone/Choose, container id:path with a
  Browse disclosure (navigate dirs, pick a file), drag-drop, inline validation
- container row 'Copy Files…' action; copyModel wired through composition

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
… TaskCenter

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
…g tail, temp cleanup)

- LogsModel: a replaced (cancelled) follow task no longer clears isStreaming on
  its successor (stale-task race); regression test added
- Run triage 'Resolve Image' now prefills the Pull sheet with the failed image
  (ImageSheet.pull carries a reference; PullImageSheet gains initialReference)
- fetchLogs drops the trailing newline so a snapshot has no spurious blank line
- Open-in-Terminal.app sweeps its throwaway .command script 10s after launch

No Critical/High findings; argv, cancellation, isolation, and arch boundary all
verified correct by the review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRY8sjZCmM87FEsjo8A4he
@barscn barscn self-assigned this Jun 29, 2026
@barscn barscn merged commit f1e0c71 into main Jun 29, 2026
2 checks passed
@barscn barscn deleted the milestone-7-run-build-exec-logs-copy branch July 2, 2026 18:27
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