feat: prepare 2.2.0 with UI and execution fixes
Add dark theme, richer Markdown and readable plugin results. Improve Android input evidence, response integrity and diagnostics. Unify lifecycle, guidance receipts and evidence sources across clients. Keep direct action dispatch without an added AI quota approval layer. Align version metadata at 2.2.0 and bundle Helper 1.2.2. Validation: 3063 backend tests before the version bump; 44 after. Frontend: 317 tests and production build passed.
This commit is contained in:
1 parent
83bcfd54d5
commit
fac4ccb760
146 files changed
+5689
-2033
No files matched your search
@@ -407,12 +407,26 @@ class PluginRuntime:
|
||||
image_block = next((b for b in outcome.content if b.get("type") == "image"), None)
|
||||
target_argument = spec.target_argument if spec else "app"
|
||||
target = str(arguments.get(target_argument) or "")
|
||||
observed_target = outcome.source.target_id if outcome.source else target
|
||||
previous = self._image_targets.get(pid)
|
||||
pre_image_valid = bool(previous and previous == (target, outcome.source_id))
|
||||
outcome.pre_image_valid = pre_image_valid
|
||||
if image_block:
|
||||
self.last_images[pid] = base64.b64decode(image_block["data"], validate=True)
|
||||
self._image_targets[pid] = (target, outcome.source_id)
|
||||
self._image_targets[pid] = (observed_target, outcome.source_id)
|
||||
cached_observation = self._observation_calls.get(pid)
|
||||
if cached_observation and observed_target != target:
|
||||
read_tool, read_args = cached_observation
|
||||
read_args = {
|
||||
**read_args,
|
||||
target_argument: (
|
||||
int(observed_target)
|
||||
if isinstance(arguments.get(target_argument), int)
|
||||
and observed_target.isdecimal()
|
||||
else observed_target
|
||||
),
|
||||
}
|
||||
self._observation_calls[pid] = (read_tool, read_args)
|
||||
elif not is_read:
|
||||
self.last_images.pop(pid, None)
|
||||
self._image_targets.pop(pid, None)
|
||||
|
||||
Reference in new issue
Block a user