Repository navigation
meetings: rename a finished meeting from the CLI (#2948) - #2949
Open
opencodejr[bot] wants to merge 1 commit into
Open
opencodejr[bot] wants to merge 1 commit into
opencodejr[bot] wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
hex meetings rename <id> <title>, requested in #2948 by @alvarogar4 (for their Raycast extension). It does the Meetings pane's Rename through the running Hex's control host on every OS, without raising the window.meeting-rename {id, title}, handled by the Linux/Windows host (control/host.rs) and the macOS host (macos_rune/control.rs). It is additive, soCONTROL_VERSIONis unchanged.meeting/retitle.rs:rename_finished(id, title)checks the id the waymeetings deletedoes (one folder with a manifest), refuses a blank title, then claims the process-local writer slot before reading. While holding the claim it refuses recording, transcribing, notes in progress andfinal.pending, using the delete codes (not-found,invalid-value,meeting-recording,meeting-transcribing,meeting-notes,meeting-final-pending,busy). It then runs the pane's rename under that same claim (write::rename_claimed, split out ofwrite::renamewith no behavior change). This matches the pane, which only offers Rename for finished meetings.hex meetings delete(feat(meetings): delete a finished meeting from the CLI #2225), which also calls an existing pane action from the CLI without a lab. Happy to gate it behind a lab if preferred.docs/cli.md(command tree, behavior paragraph, wire list, error codes),docs/transcript-cli.md,docs/features/control-cli.md(command index plus arenamebranch next todelete),docs/features/meetings.md.Tests:
renaming_by_id_saves_the_title_and_refuses_what_the_pane_would, using its own meeting id1760000000000-48so its write claim cannot collide with other tests under threadedcargo testmeeting-renameadded to the control JSON round-trip and shape testhex meetings rename --json -- <id> <title>, including a title starting with a dashOn Linux:
cargo fmt --check,cargo clippy --locked --bin hex -- -D warnings(also with--tests),scripts/check meeting::retitle control main(135 tests, all passed) andpython3 scripts/code-shape.py --check(no hard problems). The new test also passes under plain threadedcargo test. Nine existingmeeting::testscases fail under threadedcargo testwith or without this change: they share an id with each other, and they pass under nextest or with one thread. The macOS host arm mirrors the delete arm but was not compiled here.Closes #2948