# fix\(lifecycle\): preserve late saves and cached watcher connections · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/2e3ecd44ea1a56459de74d1ee90ae272c52e772c)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 2e3ecd44ea1a56459de74d1ee90ae272c52e772c

Requested commit: 2e3ecd44ea1a56459de74d1ee90ae272c52e772c

Commit: 2e3ecd44ea1a56459de74d1ee90ae272c52e772c

Tree: eb438b4b2617e76329d1714aeb7ce2cfe38876bb

Author: Simone

Committer: Simone

## Message

```
fix(lifecycle): preserve late saves and cached watcher connections

Compute the secret-command deadline from both process phases, their kill
graces, and a delivery margin. The previous 900-second deadline could
disconnect the command after a late submission while its save was still
within the CLI timeout.

Record the watched source before connecting it. Plasma can deliver a cached
reply synchronously; previously this callback disconnected the new source.

Add production-function tests for cached watcher replies and generated
secret-prompt commands with synthetic processes. Both new regressions fail
on a2d7152 and pass after the fixes.

Documentation impact: update CHANGELOG Unreleased, provider setup guidance,
and development test descriptions. Correct the account-error rationale.
README, TODO, config keys, translations, metadata, and packaging are
unaffected; this does not change a CLI contract or parity requirement.

```

## Parents

- [a2d7152628c882d6d9301a72f66e02b361523803](https://git.cafe/lucenx/codexbar-plasma/commit/a2d7152628c882d6d9301a72f66e02b361523803?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/2e3ecd44ea1a56459de74d1ee90ae272c52e772c?format=markdown)
