Repository navigation
Expand animation management, CLI, and local API; refresh installation and documentation - #2
Merged
Merged
Conversation
…rger assets Add nyathing list to print valid animations in sorted order. Allow selecting animations by their name without the size suffix, choosing the 54x36 version when both sizes are available. Update the help and README with the new command and selection behavior.
Accept optional descriptions when starting activities and retain them through expiration, using “No description provided” when absent. Preserve timed-out activity details for later error reporting. Have the CLI describe each activity using the child command and its arguments joined by spaces. Add tests for API description forwarding, timeout retention and fallback, and CLI formatting.
Resetting the disconnected count now also clears outstanding timeout records and refreshes the status indicator and its visibility. Replace the animated warning with a static timeout-error indicator showing the outstanding count. Add a lifecycle test for reset behavior.
Give expired activities stable IDs so errors can be acknowledged individually. Add a menu item and window for reviewing timeout descriptions, update the disconnected count as errors are acknowledged, and keep the main status item visible while idle. Refresh the error list and status item when lifecycle state changes. Add coverage for acknowledging individual timeouts with matching descriptions.
Prefer a valid user animation named random; otherwise choose uniformly from the available animations, falling back to the built-in ghost when none are available. Add tests for selection, name precedence, and fallback.
Allow start requests to override the configured keepalive interval and activity timeout, falling back to config defaults when omitted. Track each activity’s timeout independently and document the optional API fields. Update the CLI to pass its configured values.
Display active animation frames in place of the default app icon, then restore the icon when no activities remain. Move the version to its own section in the CLI help output.
Use a LaunchAgent to start, stop, and check the server from the terminal. Keep the server launch argument internal, update CLI help, and document the new commands in the README.
Separate error rows with dividers and add indentation before each description. Close the errors window after the last warning is acknowledged.
Give each distinct animation its own menu bar item and hide the static icon while animations are active. Resolve random animation requests through the API, and send timing settings as JSON numbers so CLI activities are accepted by the server. Start the test animation runner in server mode.
Explain the --animation random option, including the precedence of animations named random_36x36.png and random_54x36.png, fallback selection, and the built-in ghost behavior when no valid animations are available.
Add nyathing completion zsh|bash to generate shell-specific completion scripts for CLI commands, server actions, and live animation names. Document shell setup in the README and test completions against the documented commands.
Check the LaunchAgent process rather than registration when reporting server status. Kickstart a registered but stopped job so server start can recover it. Remove the test assertion for the deleted explosion animation, and correct the newline in the shell completion error message.
Explain why an animation cannot be used, including when it is missing, invalid, or specified as a path. Resolve the CLI executable through PATH when starting the server, and add a regression test. Add a make install target to install the app and CLI symlink.
Show active task descriptions and their animation icons at the top of each status menu, ordered by start time. Refresh the menus as activities start and stop, and clear ordering state when runtime state resets.
Add field tables and request examples for each API command, and clarify the CLI and timeout behavior in the README. Align the server and CLI screenshots to the right. Simplify the menu by removing the disconnected-count reset action, shortening the About and Quit labels, and separating them. Remove the obsolete lifecycle reset method and its test.
Preserve each frame's aspect ratio while reducing its displayed height to 22 pt. This makes 36×36 frames display at 22×22 pt and 54×36 frames at 33×22 pt. Tests pass.
Set the default activity timeout to 30 seconds and remove per-activity timeout overrides from the API. Require clients to provide a valid keepalive interval shorter than the server timeout, with clear errors for missing or invalid values. Update the CLI, test script, README, and API tests to match the revised protocol.
Replace manual configuration reload with a form for editing settings. Save changes to config.toml and reload settings and animations on accept. Allow random as the configured default animation and update the README.
Derive frame sizes from filename suffixes instead of a fixed size list. Bound frame dimensions, aspect ratio, frame count, and sprite sheet pixels before decoding, and document the expanded format.
Look up short animation names in the configured animations folder, selecting the largest valid matching frame. Treat other animation values as file paths and load sprite sheets outside that folder. Update API defaults, examples, and the test-animation script for path handling, and cover short-name and external-file resolution.
Use the configured default animation when wrapping commands without an explicit animation option, matching client-start behavior. Add a test for omitted animation arguments. Reorganize README sections around client and CLI usage, document client descriptions, and link to the animation file format.
Validate install prefixes and restrict removals to expected targets. Use isolated temporary directories for packaging and wrapper creation, and clean them up only after checking their paths. .
Allow clients to choose activity IDs and reject IDs that are already active. Increase the default activity timeout to three minutes and document the client option and configuration. Add API coverage for custom IDs and duplicate-ID errors.
Add Codex and Claude Code hook examples using jq and custom activity IDs. Add a contents section and update section headings with matching monochrome symbols. Include the referenced Codex and Claude Code icons.
Permit safe nested home paths such as RUNNER_TEMP and ~/.local while continuing to reject the home directory itself, root, and paths containing parent-directory traversal.
Make the installer detect bundled release files or build from the repository, and use it from both the Makefile and release archive. Remove the generated archive wrapper and obsolete second script.
vladimir-popov
force-pushed
the
list-of-animations
branch
2 times, most recently
from
November 21, 2026 14:49
7486c99 to
0cdd209
Compare
Ignore Sources/Nyathing/Version.swift and generate it before builds. Use the exact Git tag without its v prefix, or the short commit hash when no exact tag is available. . . .
vladimir-popov
force-pushed
the
list-of-animations
branch
from
November 21, 2026 14:51
0cdd209 to
f6c93fb
Compare
Use the same resolver for configured and CLI animation selections. Default to the short name nyathing and preserve full PNG paths chosen in the configuration editor. Let the animation test script use the server's default unless an animation is explicitly selected.
Resolve the configured default only when a start request omits the animation. Reject invalid explicit selections without falling back, and cover the precedence rules with a local API regression test.
Update the default animation and wait limit for future activities without restarting the local API server or clearing active state. Extend the API test to verify that an existing connection can send keepalives and stop an activity after applying new settings, while new activities use the updated default animation and wait limit.
Move elapsed time from the menu into a scrollable window that shows activity IDs, icons, and descriptions. Capture elapsed time when the window opens instead of updating it on a timer. Allow users to cancel individual activities and report the reason to the client on its next keepalive.
Keep human-readable messages alongside machine-readable codes and document the response format in the README. Reserve cancelled IDs for max_wait_time so both keepalive and stop report cancellation and a new start cannot reuse the ID prematurely. Remove the obsolete activity_timeout_seconds override and migration.
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.
Description
This PR expands Nyathing’s activity and animation controls, improves the CLI and local API, and simplifies application packaging and installation.
Key changes