4 Commits

Author SHA1 Message Date
Marc-André Moreau 75ee516f34 ci(agent): make the agentic RDP scenario prove what it rendered (#2189)
## Summary

The manually dispatched **Agentic RDP** workflow passed, but its
screenshot showed Edge's first-run welcome dialog instead of the
requested page. The scenario also hid two weaknesses:

- **Daemon readiness probe never waited.** A failing native command does
not throw in PowerShell, so the `try/catch` loop in
`Start-AgentDaemon.ps1` returned on its first attempt and logged a
`connect to daemon ... os error 2` backtrace. It now checks
`$LASTEXITCODE`, discards the expected stderr, and fails fast if the
daemon process exits.
- **Agent input failures were ignored.** `Invoke-Agent` in the desktop
scenario now throws on a non-zero exit code, matching
`Invoke-AgentRdpdrRegression.ps1`.

The desktop scenario now proves what it rendered:

- Sets the Edge `HideFirstRunExperience` policy for the scenario and
restores the previous value afterwards.
- Opens a solid-color `data:` marker page in a maximized Edge window.
- Polls screenshots for up to 45 s and fails unless the center pixel
matches the marker color.

The PR also bumps `Swatinem/rust-cache` from v2.7.3 to v2.9.1 to match
the other workflows, which removes the Node 20 deprecation warning.

## Verification

- [Run
39642171433](https://github.com/Devolutions/IronRDP/actions/runs/39642171433)
and [run
39647100713](https://github.com/Devolutions/IronRDP/actions/runs/39647100713)
on this branch both passed.
- In both runs, the screenshot shows the blue "IronRDP agentic RDP"
marker page, and the typed command is visible in the address bar.
- The log no longer contains the daemon probe error or the cache
warnings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 21:26:39 -04:00
Marc-André Moreau 24eb1f62f9 feat(agent): add authorized RDPDR harness (#1620)
Add an opt-in Windows harness that verifies \\tsclient direct PowerShell
and Explorer copy paths for an explicitly authorized endpoint.

Keep TLS certificate and hostname validation strict by default, but
permit a daemon-start-only bypass for the authorized test endpoint. Add
bounded all-or-nothing Unicode text input for remote commands without
expanding ActiveX.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-08-10 16:40:41 -04:00
Marc-André Moreau 57b1366650 feat(client): expose generic session configuration and lifecycle APIs (#1522)
## Summary
- expose generic client configuration for connection metadata,
compression, shell/work directory, audio, and runtime static-channel
factories
- add bounded input delivery with independent close cancellation, host
clipboard plumbing, lifecycle events, and Display Control resize
readiness/fallback handling
- update agent, viewer, web, FFI, examples, and tests for the generic
APIs

## Stack dependencies
This PR is stacked on `copilot/tls-validation-policy` (`b2bbcece`),
which already includes the merged runtime static-channel support from
`master`. It intentionally contains no TLS implementation/policy,
ActiveX/COM, SVC implementation, decompression, or bitmap-recovery
changes.

## Validation
- `cargo fmt --check --all`
- `cargo xtask check tests --no-run -v`
- `cargo xtask check lints -v`
- `cargo test -p ironrdp-client --lib --features rustls`
- `cargo check -p ironrdp-agent -p ironrdp-viewer -p ironrdp-web -p ffi`

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-08-02 19:36:50 -04:00
Marc-André Moreau ffedb69ca8 Add agentic RDP CLI and localhost CI workflow (#1289)
## Summary

- Add `ironrdp-agent`, a daemon-backed CLI for agentic/headless RDP
automation over local IPC
- Add mouse, keyboard, resize, wait-frame, screenshot, status, sessions,
connect/disconnect commands
- Support `.rdp` files, logging controls, and `--desktop-size WxH`
- Add a push/manual Windows workflow that enables localhost RDP, drives
`ironrdp-agent`, verifies PSRemoting, and uploads screenshot/log
artifacts

## Validation

- `cargo check -p ironrdp-agent`
- `cargo test -p ironrdp-agent`
- `cargo clippy -p ironrdp-agent --all-targets -- -D warnings`
- `cargo xtask check fmt -v`
- `cargo test -p ironrdp-agent --test ipc`
- PowerShell script parse checks
- GitHub Actions Agentic RDP workflow passed on push: run `26121877104`
  - Connected to localhost RDP at `127.0.0.1:3389`
  - Verified `1920x1080` framebuffer
  - Uploaded non-blank screenshot artifact

## Notes

Full workspace `cargo xtask check lints -v` / `cargo xtask check tests
--no-run -v` were blocked locally by the existing Windows `libopus_sys`
CMake generator issue (`Visual Studio 18 2026`), unrelated to the agent
crate path.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-02 12:35:20 -04:00