Repository navigation
feat(collector): run registered extra tasks and reveal Paseo sessions in resume for 0.12.4 - #53
Merged
Merged
Conversation
… in resume for 0.12.4 The collector can now run user-registered local commands after each sync, under the same run lock, with a per-task interval and timeout. Output goes to a file rather than pipes so a lingering child cannot hold sync open, and the task's process group is killed when it exits or times out. scripts/claude-resume-visibility.ts is an optional task that makes Claude Code sessions you talked to through Paseo appear in the resume picker, by rewriting the head entrypoint in place with equal-length bytes. Sub-agent and running sessions are left alone, and every change can be reverted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
问题
claude --resume//resume的列表里,只能凭会话 ID 打开。Claude Code 按会话记录开头的entrypoint是否为sdk-cli、sdk-ts、sdk-py决定是否列出。变化
meterleaf-collector tasks add <名称> [--every 分钟] [--timeout 秒] -- <绝对路径> [参数...],以及tasks、tasks run、tasks remove。任务在每轮同步之后、同一把运行锁内按间隔顺序运行,服务端不可达时照常运行;失败或超时只写错误日志,不影响同步和其他任务;status显示已登记的任务。scripts/claude-resume-visibility.ts。只处理属于 Paseo 代理、有你直接发出的消息、且没有进程在运行的会话,把开头 64 KiB 内的entrypoint原地改成等长的"cli"加空格。文件身份和大小不变,Claude Code 的追加写入与采集器的续读都不受影响。改动记入任务状态目录,可用--revert改回。子代理、上下文压缩摘要和中断提示不算你发出的消息。验证
bun test tests:567 通过,0 失败,含新增的任务调度、超时、进程组、校验和脚本改写、改回、资格判断测试。bun run typecheck、bun run build、bun run build:collector通过。Meterleaf.app在独立数据目录登记任务并tasks run,一个新建的claude -p会话从隐藏变为出现在真实的claude --resume列表里,打开后对话历史正常,文件逐行可解析。--dry-run):21 个会话将显示,12 个运行中暂不处理。🤖 Generated with Claude Code