Skip to content

Focus reporting escape codes not disabled on exit. #3837

@rohanbendale27

Description

@rohanbendale27

Checks

Operating system

Linux 6.8.0-124-generic - Ubuntu 24.04.4 LTS

Expected behaviour

There should be no escape codes after exiting kiro-cli

Actual behaviour

After exiting kiro-cli, terminal continues emitting ^[[I (FocusIn) and ^[[O (FocusOut) sequences when switching tabs/windows. The exit handler should send \e[?1004l to disable focus reporting.

Steps to reproduce

No response

Environment

<This will be visible to anyone. Do not include personal or sensitive information>

[q-details]
version = "2.6.0"
hash = "979b991de95e75ddf2318f67c6d196532502cad9"
date = "2026-06-04T23:23:10.563148Z (5d ago)"
variant = "minimal"

[system-info]
chip = "11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz"
total-cores = 4
memory = "15.28 GB"

[system-info.os.linux]
kernel_version = "6.8.0-124-generic"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 24.04.4 LTS"
version_id = "24.04"
version = "24.04.4 LTS (Noble Numbat)"

[environment]
cwd = "/export"
cli-path = "/export"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.2.21"
install-method = "unknown"

[env-vars]
DISPLAY = ":1"
PATH = "/home/USER/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/USER/.dotnet/tools:/usr/local/bin/apache-maven-3.2.2/bin:/usr/local/bin/apache-ant-1.9.3/bin:/opt/jboss/bin:/home/USER/Downloads/fzf-master/bin"
QT_IM_MODULE = "ibus"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "ubuntu:GNOME"
XDG_SESSION_DESKTOP = "ubuntu"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions