Conversation
|
PR author is not in the allowed authors list. |
|
@mikemikimike is attempting to deploy a commit to the Modem Team on Vercel. A member of the Team first needs to authorize it. |
|
Can you fix the PR description? It's poorly formatted. What problem are you solving, etc? (I can guess, but ...) |
|
I rechecked this PR for issue #821. The PR description covers the reported persistent-state behavior, and I do not see a human changes-requested review or a failing check for the current head. Could a maintainer please review whether this fully resolves the issue and approve it, or advise on any remaining work? |
|
The PR description now documents the problem, the XDG state/config split, the compatibility limitation, and the focused validation. Issue #821 is still open. Please review the current head when available; Vercel authorization is intentionally ignored. |
7983451 to
9ba207e
Compare
|
Rebased onto fresh main ( Validation on
Merge assessment: the state.json issue remains valid, but I recommend not merging the current behavior without addressing upgrades. Existing state/trust decisions and globally installed extensions under the old config directory are not migrated or read as a fallback, so an upgrade silently resets state and stops discovering existing extensions. Consider narrowing this to persistent state plus a safe migration/legacy fallback, and separately deciding the appropriate location and migration policy for extension code. This comment was generated by Pi using GPT-6.1 (gpt-6.1-sol) |
|
Updated in The full unit/CLI suite passes, as does the full PTY integration suite (247 passed, 1 platform skip). New coverage verifies migration, existing-destination precedence, failed migration, trust/update state preservation, and real TUI startup with both remembered repository trust and global extensions at their existing location. Typecheck, lint, dependency checks, generated docs and formatting checks pass. PR description updated to match the narrowed scope and current validation. This comment was generated by Pi using GPT-6.1 (gpt-6.1-sol) |
0c9680e to
c217a50
Compare
|
Rebased onto current main (
Highlighting responsiveness coverage remains unchanged; it passed in three repeated focused runs. Full unit/CLI tests, typecheck, lint, dependency boundaries and generated docs pass. The full local PTY rerun passed these affected tests but exposed the newly merged suspension/stale-TTL test failing; that exact test also fails on clean current main ( This comment was generated by Pi using GPT-6.1 (gpt-6.1-sol) |
|
CI fixes are complete on This comment was generated by Pi using GPT-6.1 (gpt-6.1-sol) |
Problem
Hunk stores persistent state in
$XDG_CONFIG_HOME/hunk/state.json, alongside user-editable configuration. The XDG specification reservesXDG_STATE_HOMEfor persistent application state.Solution
state.jsonunder an absolute$XDG_STATE_HOME/hunk, falling back to~/.local/state/hunkwhen the variable is unset or relative (with the existing platform-home fallback).XDG_DATA_HOME, with migration and collision handling, is tracked separately in Move global extensions to XDG_DATA_HOME with upgrade migration #1172.Validation
bun run test: both shards passed.bun run test:integration: 247 passed, 1 platform-specific skip, 0 failed.bun run typecheckbun run lintbun run deps:checkbun run check:docsgit diff --checkbun run packages/hunk/src/main.tsx -- diff --helpValidated locally on Linux; macOS/Windows verification remains with CI. No terminal rendering/layout behavior changes. The real PTY upgrade test verifies remembered trust survives, repository extensions run without another prompt, and global extensions still load from the config directory.
Compatibility
Existing state at the new destination always wins, even if empty or malformed. The legacy file is copied, not deleted; it becomes a backup after successful migration rather than a synchronized second state file. Failed migration retains legacy persistence and retries on later use. Global extensions, managed installs, repo-local extensions, and user-editable configuration do not move in this PR.
Fixes #821. Extension relocation follow-up: #1172.
This PR description was generated by Pi using GPT-6.1 (gpt-6.1-sol)