fix: 触发器响应优化 — pending trigger 在当前step结束后立即触发
修复网页触发器点击后无响应的问题。原因是 defer_triggers 模式下, pending trigger 必须等待整个 sequence 播完才触发,当 step 有 random_loop_range [2,15] 时用户可能要等几分钟。 现在改为当前 step 循环结束后立即检查并执行 pending trigger。 同时添加 systemd service 脚本。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
19
scripts/showen_v2.service
Normal file
19
scripts/showen_v2.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=ShowenV2 — 数字生命窗口平台
|
||||
After=network.target dbus.service
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=showen
|
||||
Environment=DISPLAY=:0
|
||||
Environment=XAUTHORITY=/home/showen/.Xauthority
|
||||
WorkingDirectory=/home/showen/Showen/ShowenV2
|
||||
ExecStart=/home/showen/Showen/ShowenV2/target/release/showen_v2 --config /home/showen/Showen/ShowenV2/configs/dog_state_machine.json
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
Reference in New Issue
Block a user