发布

  • fix(pi-fff): persist fff-mode across /reload and session resume (#593)

    frostbyte_neo 发布于 2026-06-13 23:08:51 +00:00

    • fix(pi-fff): persist fff-mode across /reload and session resume

    The /fff-mode command only mutated an in-memory variable that was lost
    on /reload and session restart. Now the selected mode is persisted using
    two complementary mechanisms:

    • process.env.PI_FFF_MODE: survives /reload (process stays alive, the
      factory already reads this env var on init)
    • pi.appendEntry('fff-mode', { mode }): survives process restart via
      the session file; restored on session_start and used to set the env
      var for subsequent reloads

    The "requires restart" notice is updated to "requires /reload" since
    that now actually works.

    • fix(pi-fff): remove process.env mutation, use appendEntry only for mode persistence
    下载附件