spiegel_podman/pkg/api/handlers/compat
Shuai Yuan f5efef5043 exec: honor ConsoleSize so the terminal is sized at creation
The exec API accepts a ConsoleSize but it is dropped: the exec
pseudo-terminal is created at its default size and only corrected
afterwards by an asynchronous resize. A short-lived exec that reads its
window size at startup (e.g. `stty size`) can therefore observe the wrong
size, because the resize may arrive after the process has already read it.
docker applies the size at creation.

Carry the requested ConsoleSize through ExecConfig and into the exec OCI
process spec (process.consoleSize) so the runtime sizes the terminal
before the process starts, removing the race. The local and remote CLIs
capture the caller's terminal size when -t is given and pass it through
ExecOptions, matching the behavior of `podman run`.

Re-enable the previously flaky `podman exec` case in the interactive
system test, which this change makes deterministic.

Signed-off-by: Shuai Yuan <shuaiyuanzju@gmail.com>
2026-06-22 10:36:10 +08:00
..
auth.go API Handlers should not error on empty request bodies 2026-05-13 16:33:40 -04:00
changes.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
containers_archive.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
containers_attach.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_create.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
containers_export.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_logs.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_pause.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_prune.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_restart.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_start.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats_freebsd.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats_linux.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stop.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_top.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_unpause.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
events.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
exec.go exec: honor ConsoleSize so the terminal is sized at creation 2026-06-22 10:36:10 +08:00
images.go cmd, commit: change --pause default to true 2026-06-03 07:28:22 +02:00
images_build.go Adjust API calls for compression 2026-05-29 09:10:50 -04:00
images_history.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_prune.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_push.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
images_remove.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_tag.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
info.go info: report configured and discovered CDI devices 2026-06-01 21:45:41 +02:00
networks.go API Handlers should not error on empty request bodies 2026-05-13 16:33:40 -04:00
ping.go RUN-4538: Fix buildah vendoring 2026-04-21 14:27:58 -05:00
resize.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
secrets.go API Handlers should not error on empty request bodies 2026-05-13 16:33:40 -04:00
system.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
types.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
unsupported.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
version.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
volumes.go Merge pull request #28673 from kyounghunJang/feat/add-volume-prune-dry-run 2026-05-18 19:26:18 +02:00