Compare commits

..

4 Commits

Author SHA1 Message Date
Gud Boi 61bef6d5f5 Strip `None` values from symcache dict before TOML write
(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

Note that (again) this patch was orig by @dnks and broken out from
a larger commit which added unnecessary/out-of-scope changes we didn't
end up requiring.
2026-03-11 10:56:22 -04:00
Gud Boi 52e65dbe0d Use `md5` hashed shm keys for macOS compat
Shorten SHM buffer key names to fit Darwin's 31
char filename limit by hashing the `fqme`/content
portion with `md5` and truncating to 8 hex chars.

Deats,
- `.fsp._api`: replace `piker.{actor}[{uuid}].{sym}`
  format with `{uuid[:8]}_{hash}.fsp`
- `.tsp._history`: add `platform.system()` check to
  conditionally shorten `.hist`/`.rt` keys on Darwin
  while keeping the full key format on Linux

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

NOTE that this patch was orig by @dnks and broken out from a larger
commit which added unnecessary/out-of-scope changes we didn't end up
requiring.
2026-03-11 10:56:22 -04:00
Gud Boi 8b3365a249 Check for a `.hist` suffix in shm file names
That is, in-mem history buffer files should have a `.hist` suffix (which
was added back instead of the weird `.h` change from the rebased
8352d89e, initially providing the macos support fix).

I'm pretty sure we can afford the 3 extra chars if we're already
truncating to a max 16 char `key: str = f'{uuid[:8]}_{fqme_hash}'`, per
@goodboy's edit from the original key-truncation approach in the
original original @dnks patch: 75d8582b).
2026-03-11 10:55:04 -04:00
Gud Boi 2ceec5b9c0 gitignore: start a "tina sw" section with `vscode` settings 2026-03-11 10:55:04 -04:00
3 changed files with 2 additions and 44 deletions

View File

@ -6,11 +6,9 @@ pikerd = [
[ui]
# set custom font + size which will scale entire UI~
# set custom font + size which will scale entire UI
# font_size = 16
# font_size = 32
# font_name = 'Monospaced'
# colorscheme = 'default' # UNUSED
# graphics.update_throttle = 120 # Hz #PENDING TODO
# graphics.update_throttle = 60 # Hz # TODO

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
# macOS wrapper for piker to handle missing XDG_RUNTIME_DIR
# Set up runtime directory for macOS if not already set
if [ -z "$XDG_RUNTIME_DIR" ]; then
# Use macOS standard temp directory with user-specific subdirectory
export XDG_RUNTIME_DIR="/tmp/piker-runtime-$(id -u)"
# Create the directory if it doesn't exist
if [ ! -d "$XDG_RUNTIME_DIR" ]; then
mkdir -p "$XDG_RUNTIME_DIR"
# Set proper permissions (only user can access)
chmod 700 "$XDG_RUNTIME_DIR"
fi
echo "Set XDG_RUNTIME_DIR to: $XDG_RUNTIME_DIR"
fi
# Run piker with all passed arguments
exec uv run piker "$@"

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
# macOS wrapper for pikerd to handle missing XDG_RUNTIME_DIR
# Set up runtime directory for macOS if not already set
if [ -z "$XDG_RUNTIME_DIR" ]; then
# Use macOS standard temp directory with user-specific subdirectory
export XDG_RUNTIME_DIR="/tmp/piker-runtime-$(id -u)"
# Create the directory if it doesn't exist
if [ ! -d "$XDG_RUNTIME_DIR" ]; then
mkdir -p "$XDG_RUNTIME_DIR"
# Set proper permissions (only user can access)
chmod 700 "$XDG_RUNTIME_DIR"
fi
echo "Set XDG_RUNTIME_DIR to: $XDG_RUNTIME_DIR"
fi
# Run pikerd with all passed arguments
exec uv run pikerd "$@"