Skip to content

Support schedule entry drafts, highlights, and join links - #1019

Merged
robzolkos merged 9 commits into
mainfrom
cli-cleanup/schedule-draft-10476950659
Nov 22, 2026
Merged

robzolkos merged 9 commits into
mainfrom
cli-cleanup/schedule-draft-10476950659

Conversation

@robzolkos

@robzolkos robzolkos commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Schedule entries can now be created as drafts, highlighted, and given join links from the CLI. This completes the options requested by https://app.basecamp.com/2914079/buckets/48521764/card_tables/cards/10476950659.

  • schedule create --draft saves an unpublished entry; omitted or --draft=false explicitly creates an active entry. Draft output includes its link and guidance to publish in Basecamp.
  • schedule create and schedule update accept --highlight and --join-url. --highlight=false removes the highlight and --join-url="" clears the join link. Omitted options preserve existing values on update. The SDK writes the join link as url; responses expose it as join_url, separate from the API address.
  • Preserve the original draft implementation and regression fixes, bring it up to current main, and add request regressions, CLI surface entries, skill guidance, and API coverage notes.

Publishing and generic status updates are deliberately excluded: SDK update/replace requests expose no status field. Open the returned draft link in Basecamp to publish. Existing recording archive/trash/restore commands cover lifecycle changes; archived/trashed schedule listing already exists.

Validation: full local bin/ci passed. Isolated BC3 runtime run 20261121-231236-schedule-entry-options demonstrated the old flag rejection and independently read back draft/default/false creation, setting and clearing links/highlights, scheme-less URL normalization, preservation across unrelated edits, and unchanged draft status on update. Created entries were trashed. Evidence: ~/.local/state/basecamp-cli-verify/runs/20261121-231236-schedule-entry-options/. Runtime used local BC3 master 0cf334994c1; environment-dependent CI skips are not claimed as live coverage.

@robzolkos
robzolkos requested a review from a team as a code owner November 9, 2026 02:00
Copilot AI balanced review requested due to automatic review settings November 9, 2026 02:00
@github-actions github-actions Bot added commands CLI command implementations tests Tests (unit and e2e) docs labels Nov 9, 2026
Copilot AI previously approved these changes Nov 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues are reported for the new schedule draft-creation option.

No open issues 🎉

What changed in this PR

Adds explicit draft creation to basecamp schedule create while preserving published-by-default behavior.

Changes:

  • Adds --draft to send status: drafted; omitted or false sends status: active.
  • Labels draft output, directs users to Basecamp for editing and publishing, and preserves account/profile scope in follow-up commands.
  • Adds regression and write-smoke coverage, plus CLI surface and API coverage updates.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
internal/​commands/​schedule.go Adds draft creation, publication status, and scoped follow-up guidance.
internal/​commands/​schedule_draft_test.go Covers publication states, draft output, and follow-up scope.
e2e/​smoke/​smoke_schedule_write.bats Verifies creation and read-back for all three flag modes.
API-COVERAGE.md Documents draft creation and the Basecamp publishing workflow.
.surface Records the new schedule create --draft flag.

Review effort: Balanced

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread internal/commands/schedule.go Resolved
Comment thread e2e/smoke/smoke_schedule_write.bats Resolved
Copilot AI balanced review requested due to automatic review settings November 9, 2026 02:11
Copilot AI dismissed their stale review, a newer Copilot review was requested November 9, 2026 02:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Drafts with unresolved mentions incorrectly emit informational publication guidance on stderr in quiet/agent mode; the diagnostic should contain only the mention warning, with regression coverage for this case.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Limit quiet-mode diagnostics to unresolved mention warnings

internal/​commands/​schedule.go:640

With --draft and an unresolved mention in --description, notice contains both the publication guidance and the mention warning. Passing that combined text to WithDiagnostic causes quiet/agent mode to print the draft guidance on stderr too (internal/output/envelope.go:239–247), despite the intended informational-only behavior. Keep the combined notice for envelope formats, but emit only mentionNotice as the quiet-mode diagnostic; add a regression covering a draft with an unresolved mention.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 9, 2026 02:22
@robzolkos

Copy link
Copy Markdown
Collaborator Author

🤖 Fixed the quiet-mode unresolved-mention finding in 275d065. JSON keeps both draft guidance and the mention warning; quiet/agent stderr contains only the mention warning. The new JSON/quiet regression failed before the fix and passes now. Full local bin/ci passed on this commit, as did isolated draft/omitted/false readbacks, the updated smoke test, and a real quiet draft with a synthetic unresolved mention. Hosted checks and fresh reviews are running.

Copilot AI previously approved these changes Nov 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues are identified for the schedule draft-creation changes.

No open issues 🎉

Review effort: Balanced

…ub.com/basecamp/basecamp-cli into schedule-entry-options

* 'cli-cleanup/schedule-draft-10476950659' of https://github.com/basecamp/basecamp-cli:
  Limit quiet draft diagnostics to unresolved mentions
  Keep draft guidance informational and assert its notice field
  Add explicit draft creation for schedule entries
Copilot AI balanced review requested due to automatic review settings November 22, 2026 04:18
Copilot AI dismissed their stale review, a newer Copilot review was requested November 22, 2026 04:18
@github-actions github-actions Bot added tui Terminal UI sdk SDK wrapper and provenance ci CI/CD workflows skills Agent skills plugin Claude Code plugin auth OAuth authentication deps labels Nov 22, 2026
@github-actions

Copy link
Copy Markdown

Sensitive Change Detection (shadow mode)

This PR modifies control-plane files:

  • .github/workflows/dependabot-auto-merge.yml
  • .github/workflows/release.yml

Shadow mode — this check is informational only. When activated, changes to these paths will require approval from a maintainer.

@robzolkos robzolkos changed the title Add explicit draft creation for schedule entries Support schedule entry drafts, highlights, and join links Nov 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The update fixture lacks populated URL and highlight options, so it would miss a regression that incorrectly writes the response URL during a summary-only edit.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:22
@robzolkos

Copy link
Copy Markdown
Collaborator Author

Fixed both outstanding items in 8df0fcb and 71d2ddd.

The failed race shard reported TestRateLimiterRetryAfter's remaining-time assertion (got 0s), with no data-race report. Its 50 ms wall-clock block could expire during filesystem work. The test now uses testing/synctest and asserts exact remaining time, rejection immediately before expiry, and admission at the deadline. Production code is unchanged.

Validation: full bin/ci passed; schedule option regressions passed under -race; the retry-after test passed 100 race-instrumented runs; the entire resilience package passed under -race. The strengthened populated-options fixture review thread is resolved. Fresh hosted checks will run on this push.

* origin/main:
  Let auth login reach a beta preview on a private network (#1054)
  Resubscribe the feed when its socket stays connected and stops delivering (#1056)
  Open pin-comment repair PRs as the org PR bot (#1052)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Human review is needed for the broader unattended-execution, socket-authority, trust-migration, and platform-specific runner changes, since reported live validation covers only schedules.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:31
@github-actions github-actions Bot removed tui Terminal UI sdk SDK wrapper and provenance ci CI/CD workflows plugin Claude Code plugin auth OAuth authentication deps labels Nov 22, 2026
@robzolkos

Copy link
Copy Markdown
Collaborator Author

Fixed the Nix check in a00d14b after updating this branch to current main. CI builds the merge with main; newer imports there change the vendored package graph even though go.mod/go.sum are unchanged. The branch alone still produced the previous vendor hash, so reproducing the merge was necessary before verifying the new one.

Updated nix/package.nix to the hash Nix computed for the merged source. Native scripts/nix-build-check.sh now succeeds and runs the built binary (basecamp version 0.30.0). Full bin/ci passed on the updated branch. Fresh hosted checks will run on this push.

@robzolkos

Copy link
Copy Markdown
Collaborator Author

Checked this against the current PR diff at a00d14b. There are no connector/runner, socket-authority, trust-migration, or platform-specific execution changes in this PR's diff against main; those changes came from main via the branch updates and are already part of the base.

The current 10-file diff contains schedule options/draft creation, their tests and documentation, a test-only retry-after timing fix, and the Nix vendor hash needed for the current imports. Live validation covers the changed schedule commands; the retry-after test passed repeated race-instrumented runs and the resilience package passed -race. Full bin/ci and the native Nix build pass locally. The populated-options review finding is resolved, with no open review threads. No additional implementation change is needed for the broader runner concern.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues are reported for the schedule command enhancements.

No open issues 🎉

Review effort: Balanced

@robzolkos
robzolkos merged commit 40249ab into main Nov 22, 2026
32 checks passed
@robzolkos
robzolkos deleted the cli-cleanup/schedule-draft-10476950659 branch November 22, 2026 22:42
jeremy added a commit that referenced this pull request Nov 23, 2026
…950575

* origin/main:
  Keep a person's client flag when it is false (#1055)
  Filter gauge listings by chosen projects (#1049)
  Say how to recover a broken connect.json, and keep reporting around it (#1053)
  Support schedule entry drafts, highlights, and join links (#1019)
  Let auth login reach a beta preview on a private network (#1054)
  Resubscribe the feed when its socket stays connected and stops delivering (#1056)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands CLI command implementations docs skills Agent skills tests Tests (unit and e2e)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants