Files
notify/Notify/Models/StateData.cs
T
chuan 891128fec3 feat: WT 切标签、工具窗口化与非阻塞投递
- P1b: 点击通知切回 Windows Terminal 原标签(源生成 COM UIAutomation,AOT 友好)
- Toast 设为工具窗口(WS_EX_TOOLWINDOW),从任务栏与 Alt+Tab 隐藏
- 投递改为落盘队列 spool + FileSystemWatcher,CLI 毫秒级返回不阻塞 Claude Code
- 移除命名管道(PipeServer/PipeClient/PipeMessage),新增 NotificationSpool/SpoolWatcher
- NativeAOT 发布配置 + scripts/build.bat(vcvars 自动配置 MSVC 工具链)
- .gitattributes 保证 .bat 用 CRLF
2026-06-22 15:47:08 +08:00

17 lines
527 B
C#

namespace Notify.Models;
/// <summary>
/// 每会话持久化的状态,由 save 钩子写入、notify 钩子与点击激活读取
/// </summary>
public sealed class StateData
{
// 触发时的前台窗口句柄
public long Hwnd { get; set; }
// 用户当次输入的 prompt,用作"任务完成"通知的正文
public string Prompt { get; set; } = "";
// 若前台是 Windows Terminal,记录当时选中标签的 RuntimeId,用于点击后切回
public string WtRuntimeId { get; set; } = "";
}