+
    -pÐjoL  ã                   ó  € R t ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIH	t
 ^ RIHt ]P                  ! R4      tRtRtR	t]! ]]]04      tR
 R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltR R lt ! R R4      tR# )zûInterrupt / steer / redirect control surface for ``AIAgent``.

Soft/hard interrupt requests, tool-thread interrupt propagation, pending steer/redirect queues.
Extracted from ``run_agent.py``; every method resolves through ``AIAgent``'s MRO unchanged.
N)ÚOptional)Úrequest_hard_interrupt)Úrequest_yield)Úset_interruptÚ	run_agentzexplicit stop requestedzuser sent a new messagezuser interruptc                ó:   € V ^8„  d   QhR\         \        ,          /# ©é   Úreturn©r   Ústr)Úformats   "Ú&/opt/hermes/agent/interrupt_control.pyÚ__annotate__r      s   € ÷ 1ñ 1œx¬�}ñ 1ó    c                ó˜   € \        V RR4      pV'       d   V\        9   d   R# \        V4      P                  4       P	                  RR4      # )zWSlug of the system producer behind the pending interrupt, or ``None`` for a human stop.Ú_tool_interrupt_reasonNÚ Ú_)ÚgetattrÚUSER_INTERRUPT_REASONSr   ÚstripÚreplace©ÚagentÚreasons   & r   Úinterrupt_issuerr      s?   € ä�UÐ4°dÓ;€Fß�VÔ5Ô5ÙÜˆv‹;×ÑÓ×&Ñ& s¨CÓ0Ð0r   c                ó$   € V ^8„  d   QhR\         /# r   ©r   )r   s   "r   r   r   #   s   € ÷ 
?ñ 
?¤Sñ 
?r   c                ó¢   € \        V RR4      pV'       g   R# V\        9   d   VP                  4       # R\        V4      P	                  RR4       2# )zðReason a tool call was skipped/cancelled, in words safe for tool output.

Derived from the RECORDED reason rather than the call site, so a system-initiated
abort reads as one instead of asserting a user message that never existed (#130207).r   NzTurn interruptedu   Turn aborted â€” r   r   )r   r   Ú
capitalizer   r   r   s   & r   Úinterrupt_skip_wordingr!   #   sP   € ô
 �UÐ4°dÓ;€FßÙ!ØÔ'Ô'Ø× Ñ Ó"Ð"Øœs 6›{×2Ñ2°3¸Ó<Ð=Ð>Ð>r   c                ó$   € V ^8„  d   QhR\         /# r   r   )r   s   "r   r   r   0   s   € ÷ añ a´ñ ar   c                ó8   € \        V 4      pV'       d   RV R2# R# )zdTurn exit reason for an API call cut short by an interrupt (``turn_explainers`` matches the prefix).zinterrupted_during_api_call(Ú)Úinterrupted_during_api_call)r   )r   Úissuers   & r   Ú"interrupted_during_api_call_reasonr'   0   s$   € ä˜eÓ$€Fß7=Ð)¨&¨°Ð3Ð`ÐC`Ð`r   c                ó4   € V ^8„  d   QhR\         R\        RR/# )r	   Úwhen_in_flightÚfailure_logr
   N)Úboolr   )r   s   "r   r   r   6   s"   € ÷ 5ñ 5¼$ð 5ÌSð 5ÐUYñ 5r   c               óü   € V e   \        \        V RR4      4      VJd   R# \        \        V 4      RR4      p\        V4      '       d    V! V 4       R# R#   \         d    \
        P                  TRR7        R# i ; i)u!  Call ``type(fence).cancel_before_commit(fence)`` when ``commit_in_flight`` matches.

Hard-cancel admission has two halves (#99758 P1). BEFORE the generation claim is
consumed only a commit already in flight is waited out (the call blocks on the fence
lock and returns False WITHOUT setting ``_cancelled``) â€” cancelling a still-pending
fence there would be irreversible for an abort that may yet be declined. AFTER the
claim survived, only a still-pending commit is cancelled; one that started meanwhile
owns the fence and completes on its own.NÚcommit_in_flightFÚcancel_before_commitT©Úexc_info)r+   r   ÚtypeÚcallableÚ	ExceptionÚloggerÚdebug)Úfencer)   r*   r.   s   &$$ r   Ú_fence_cancel_before_commitr7   6   su   € ð ‚}œœW UÐ,>ÀÓFÓGÈ~Ó]ÙÜ"¤4¨£;Ð0FÈÓMÐÜÐ$×%Ò%ð	5Ù  Ö'ñ &øô ô 	5Ü�L‰L˜¨tˆL×4ð	5ús   Á	A Á"A;Á:A;c                ó$   € V ^8„  d   QhR\         /# )r	   Úattrr   )r   s   "r   r   r   I   s   € ÷ >ñ >œ#ñ >r   c                óP   € \        WR4      pVf   \        P                  ! 4       # T# )zY``with`` the lock stored at ``attr`` when present; __init__-less test stubs run unlocked.N)r   Ú
contextlibÚnullcontext)r   r9   Úlocks   && r   Ú_ic_lockr>   I   s&   € ä�5 Ó%€DØ'+¢|Œ:×!Ò!Ó#Ð=¸Ð=r   c                ó0   € V ^8„  d   QhR\         R\         /# )r	   Ú	lock_attrÚslotr   )r   s   "r   r   r   O   s   € ÷  ñ  œsð  ¬#ñ  r   c                óL   € \        WR4      f   \        WR4      # \        W4      # )a
  Read the pending-text ``slot`` guarded by ``lock_attr``. An initialized agent always has both
attributes, so under the lock the slot is read directly and a missing one fails loud (a real bug);
only ``__init__``-less test stubs (no lock) get the ``getattr`` fallback.N)r   )r   r@   rA   s   &&&r   Ú_ic_slotrC   O   s)   € ô ˆu Ó&Ò.Ü�u DÓ)Ð)Ü�5ÓÐr   c                ó$   € V ^8„  d   QhR\         /# )r	   Únamer   )r   s   "r   r   r   X   s   € ÷ 0ñ 0¤#ñ 0r   c                ó„   € \        V RR4      R8w  d   R# \        \        V RR4      VR4      p\        V4      '       d   V# R# )zLCodex app-server owns its model/tool loop; return its ``name`` hook or None.Úapi_modeNÚcodex_app_serverÚ_codex_session)r   r2   )r   rE   Úmethods   && r   Ú_ic_codex_methodrK   X   sD   € äˆu�j $Ó'Ð+=Ô=ÙÜ”W˜UÐ$4°dÓ;¸TÀ4ÓH€FÜ˜f×%Ò%ˆ6Ð/¨4Ð/r   c                ó4   € V ^8„  d   QhR\         R\         RR/# )r	   r   r*   r
   Nr   )r   s   "r   r   r   `   s!   € ÷ 5ñ 5¬Cð 5¼cð 5Àdñ 5r   c                óª   € \        V RR4      p\        V4      '       d    V! V4       R# R#   \         d    \        P	                  TRR7        R# i ; i)zXShut the registered in-flight request's sockets (cron turns register their client here).Ú_active_request_abortNTr/   )r   r2   r3   r4   r5   )r   r   r*   Úaborts   &&& r   Ú_ic_abort_active_requestrP   `   sL   € ä�EÐ2°DÓ9€EÜ�‡‚ð	5Ù�&ŽMñ øô ô 	5Ü�L‰L˜¨tˆL×4ð	5ús    , ¬"AÁAc                ó(   € V ^8„  d   QhR\         RR/# )r	   Úactiver
   N©r+   )r   s   "r   r   r   j   s   € ÷ ñ ¬4ð ¸$ñ r   c                ó   € \        V RR4      p\        V RR4      pVe   Vf   R# V;_uu_ 4        \        V4      pRRR4       X F  p \        W3/ VB  K  	  R#   + '       g   i     L(; i  \         d     K7  i ; i)a!  Fan the tool interrupt bit out to concurrent-tool worker tids.

``is_interrupted()`` inside a tool only sees its own tid, so without this a hung
concurrent tool runs to its own timeout (and a stale bit could survive a turn
boundary onto a recycled tid). getattr covers __init__-less stubs.Ú_tool_worker_threadsNÚ_tool_worker_threads_lock)r   ÚlistÚ_set_interruptr3   )r   rR   ÚkwÚtrackerÚtracker_lockÚworker_tidsÚtids   &&,    r   Ú_ic_signal_tool_workersr^   j   sy   € ô �eÐ3°TÓ:€GÜ˜5Ð"=¸tÓD€LØ‚˜,Ò.Ùß	ŠÜ˜7“mˆ÷ 
ãˆð	Ü˜6Ñ-¨"Ô-ó ÷ 
�ûô
 ô 	Úð	ús   ¯AÁ	A.ÁA+	Á.A=Á<A=c                   óà   a € ] tR t^}t o RtRRRRRRR/V 3R lR llltRRR/V 3R	 lR
 llltRRRR/V 3R lR lltV 3R lR ltV 3R lR lt	V 3R lR lt
V 3R lR ltV 3R lR ltRtV tR# )ÚInterruptControlMixinzYinterrupt()/hard_interrupt()/clear_interrupt()/steer()/redirect() (see module docstring).NÚhard_cancelFÚtool_reasonÚrequire_generationc          
      óh   <€ V ^8„  d   QhRS[ S[,          RS[RS[ S[,          RS[ S[,          RS[/# )r	   Úmessagera   rb   rc   r
   )r   r   r+   Úint)r   Ú__classdict__s   "€r   r   Ú"InterruptControlMixin.__annotate__€   sJ   ø€ ÷ fñ fÙ¡•}ðfÙ=Aðfá™c•]ðfá?GÉ½}ðfñ 
ñfr   c          	     ó   a aaa€ VeF   S P                  4       ;_uu_ 4        \        S R^ 4      V8w  d    RRR4       R# VS n        RRR4       S'       d   T;'       g    \        MT;'       g    S'       d   \        M\
        oR VVV V3R llpVV 3R lp\        S R4      ;_uu_ 4        \        V! 4       RR	R
7       Vf	   V! 4        MTS P                  4       ;_uu_ 4        \        S RR4      V8w  d    RRR4       RRR4       R# RS n        V! 4        RRR4       \        V! 4       RRR
7       RS n        RRR4       \        S R4      pVe	    V! 4        \        S RR4       S P                  e!   \        RS P                  SR7       RS n        MRS n        \#        S RSR7       S P$                  ;_uu_ 4        \'        S P(                  4      pRRR4       X F-  p	 S'       d   \+        V	SSR7       K  V	P-                  S4       K/  	  S P.                  '       gF   \1        RS'       d   \3        S4      ^(8”  d   RSR,           R2MS'       d   RS R2MR,           4       R#   + '       g   i     EL*; i  + '       g   i     ELm; i  + '       g   i     EL_; i  \         d    \        P                  RRR7        ELoi ; i  + '       g   i     EL; i  \         d#   p
\        P                  RT
4        Rp
?
EK+  Rp
?
ii ; i)u²  Request the agent to interrupt its current tool-calling loop (call from another thread).

``hard_cancel``: explicit stop; compression may honor it even while ordinary interrupts are masked.
``tool_reason``: trusted fixed category safe for tool output. ``require_generation``: activity-
generation claim â€” published only if the turn's generation still matches at the final mutation edge;
returns False if the turn resumed meanwhile.
NÚ"_turn_liveness_activity_generationFc                ó   € V ^8„  d   QhRR/# )r	   r
   N© )r   s   "r   r   Ú5InterruptControlMixin.interrupt.<locals>.__annotate__�   s   € ÷ 		"ñ 		"¨$ñ 		"r   c                  óÜ   <€ R Sn         SSn        SSn        R Sn        \        P                  RS'       d   RMRS4       S'       d   \        SRR4      MRp V e   V P                  4        R# R# )TzInterrupt requested (%s): %sÚhardÚsoftÚ_hard_interrupt_requestedN)Ú_interrupt_requestedÚ_interrupt_messager   Ú_turn_user_intervenedr4   Úinfor   Úset)Ú_hard_eventra   re   ÚselfÚtool_interrupt_reasons    €€€€r   Ú_publish_interrupt_stateÚAInterruptControlMixin.interrupt.<locals>._publish_interrupt_state�   sc   ø€ Ø(,ˆDÔ%Ø&-ˆDÔ#Ø*?ˆDÔ'Ø)-ˆDÔ&ä�K‰KÐ6Ç+¹ÐSYÐ[pÔqßNYœ' $Ð(CÀTÔJÐ_cˆKØÒ&Ø—‘Ö!ñ 'r   c                  óL   <€ S '       d   \        S4      P                  R 4      # R# )Ú _active_compression_commit_fenceN)ÚvarsÚget)ra   rx   s   €€r   Ú_fenceÚ/InterruptControlMixin.interrupt.<locals>._fence¨   s   ø€ ßIT”4˜“:—>‘>Ð"DÓEÐ^ÐZ^Ð^r   Ú_pending_redirect_lockTz)Compression hard-cancel fence wait failed)r)   r*   Ú_turn_liveness_abort_claimz.Compression hard-cancel fence admission failedÚrequest_interruptz)Failed to interrupt Codex app-server turnr/   Úinterrupt_abortz%Failed to abort active inline request)r   )rb   z0Failed to propagate interrupt to child agent: %su   
âš¡ Interrupt requestedz: ':Né(   Nz...'Ú'Ú )Ú_liveness_activity_lockr   rƒ   Ú_REASON_HARD_STOPÚ_REASON_NEW_MESSAGEÚ_REASON_USER_INTERRUPTr>   r7   Ú_pending_redirectrK   r3   r4   r5   rP   Ú_execution_thread_idrX   Ú _interrupt_thread_signal_pendingr^   Ú_active_children_lockrW   Ú_active_childrenr   Ú	interruptÚ
quiet_modeÚprintÚlen)rx   re   ra   rb   rc   rz   r€   Ú_request_interruptÚchildren_copyÚchildÚery   s   ffd$$      @r   r’   ÚInterruptControlMixin.interrupt€   s¹  û€ ð Ò)ð ×-Ñ-×/Õ/Ü˜4Ð!EÀqÓIÐM_Ô_Ø ÷ 0Ñ/ð 3E�Ô/÷ 0÷ 3>ˆ[×-Ð-Ô-øØ×]Ð]¿Õ"5ÔF\ð 	÷
		"ó 		"ö	_ô �dÐ4×5Õ5Ü'Ù“¨Ð;fõð "Ò)ñ )Õ*ð
 ×1Ñ1×3Õ3Ü˜tÐ%AÀ4ÓHÐL^Ô^Ø$÷ 4÷ 6Ñ5ð 7;�DÔ3Ù,Ô.÷	 4ô
 (Ù“¨Ð<lõð &*ˆDÔ"÷) 6ô. .¨dÐ4GÓHÐØÒ)ðYÙ"Ô$ô 	! Ð'8Ð:aÔbà×$Ñ$Ò0Ü˜4 ×!:Ñ!:ÐCXÕYØ49ˆDÕ1ð 59ˆDÔ1Ü  dÐ3HÕIà×'×'Ó'Ü  ×!6Ñ!6Ó7ˆM÷ (ã"ˆEðTßÜ*¨5°'ÐG\×]à—O‘O GÖ,ñ #ð ��ˆÜÐ-ÏWÔY\Ð]dÓYeÐhjÔYj°3°w¸sµ|°nÀDÑ1I÷  ELÐruÐv}Ðu~Ð~ñ  qAð  RTõ  Uô  VÙ÷q 0×/Ð/ú÷Z 4×3Ð3ú÷ 6×5Ð5ûô6 ô YÜ—‘ÐHÐSW�×XðYú÷  (×'Ð'ûô ô TÜ—‘ÐOÐQR×SÓSûðTús|   ¡I'¿I'Â+8JÃ#I;	Ã7JÄ	I;	Ä"JÅJ# Æ=KÇ!K Ç9K É'I8	É;JÊ	JÊJ 	Ê#"K	ËK	ËK	Ë LË+LÌLc                óJ   <€ V ^8„  d   QhRS[ S[,          RS[ S[,          RR/# )r	   re   rb   r
   Nr   )r   rg   s   "€r   r   rh   è   s1   ø€ ÷ bñ b¡h©s¥mð bÉHÑUXÍMð bÐeiñ br   c               ó6   € \         P                  WRVR7       R# )z÷Explicit stop preserving the ``interrupt()`` ABI (frontends feature-detect this and fall back to
legacy ``interrupt()`` for third-party agents). Bypasses dynamic dispatch: legacy subclasses may
override interrupt(message=None) without hard_cancel.T)ra   rb   N)r`   r’   )rx   re   rb   s   &&$r   Úhard_interruptÚ$InterruptControlMixin.hard_interruptè   s   € ô 	×'Ñ'¨À4ÐU`Ð'Öar   Úpreserve_redirectc                ó,   <€ V ^8„  d   QhRS[ RS[ RS[ /# )r	   rŸ   ra   r
   rS   )r   rg   s   "€r   r   rh   î   s#   ø€ ÷ ñ ±Dð Étð Ñ`dñ r   c               óH  € \        V R4      ;_uu_ 4        V'       d   \        V RR4      '       g    RRR4       R# RV n        R;V n        V n        \        V R\        P                  ! 4       4      P                  4        V'       g   RV n	        RRR4       RV n
        V P                  e   \        RV P                  4       \        V R4       V'       d'   \        V R4      ;_uu_ 4        RV n        RRR4       R# R#   + '       g   i     Lw; i  + '       g   i     R# ; i)uÐ  Clear the interrupt request and per-thread tool signal. ``preserve_redirect`` is only for the
conversation loop rebuilding the same logical turn after cancelling a model request.
``hard_cancel`` also drops an unconsumed pending steer: the aborted turn's next tool iteration
will no longer happen, and re-injecting the note into the post-stop turn would surprise the
user. Every other caller (redirect rebuild, error recovery, turn-boundary hygiene) continues
this session, so the already-accepted steer must survive: it stays buffered for the existing
drains â€” the pre-API inject, the post-batch append, or the finalizer's leftover handoff â€”
instead of silently vanishing after the surface was told it was delivered.r‚   r�   NFrq   Ú_pending_steer_lockT)r>   rC   rr   rs   r   r   Ú	threadingÚEventÚclearr�   r�   rŽ   rX   r^   Ú_pending_steer)rx   rŸ   ra   s   &$$r   Úclear_interruptÚ%InterruptControlMixin.clear_interruptî   sß   € ô �dÐ4×5Õ5ß ¬°$Ð8PÐRe×)fÒ)fØ÷ 6Ñ5ð ).ˆDÔ%ØDHÐHˆDÔ# dÔ&AÜ�DÐ5´y·²Ó7HÓI×OÑOÔQß$Ø)-�Ô&÷ 6ð 16ˆÔ-Ø×$Ñ$Ò0Ü˜5 $×";Ñ";Ô<Ü  eÔ,ßô ˜$Ð 5×6Õ6Ø&*�Ô#÷ 7ã÷% 6×5ú÷  7Ö6áús   •C=¼AC=Ã)DÃ=D	ÄD!	c                ó&   <€ V ^8„  d   QhRS[ RS[/# ©r	   Útextr
   ©r   r+   )r   rg   s   "€r   r   rh     s   ø€ ÷ ñ ™#ð ¡$ñ r   c                ó,  € V'       d   VP                  4       '       g   R# VP                  4       p\        V R4      ;_uu_ 4        \        V RR4      pV'       d   VR,           V,           MTV n        RRR4       RV n        R#   + '       g   i     L; i)z®Queue user text for delivery as its own user row after the current tool batch finishes (no
interrupt); multiple calls concatenate with newlines. Returns False for empty text.Fr¢   r¦   Ú
NT)r   r>   rC   r¦   rt   )rx   r«   ÚcleanedÚexistings   &&  r   ÚsteerÚInterruptControlMixin.steer  sm   € ÷ ˜4Ÿ:™:Ÿ<š<ÙØ—*‘*“,ˆÜ�dÐ1×2Õ2Ü Ð&;Ð=MÓNˆHßAI 8¨d¥?°WÖ#<ÈwˆDÔ÷ 3ð &*ˆÔ"Ù÷ 3×2ús   Á-BÂB	c                ó&   <€ V ^8„  d   QhRS[ RS[/# rª   r¬   )r   rg   s   "€r   r   rh     s   ø€ ÷ =ñ =™Sð =¡Tñ =r   c                óØ  € V'       d   VP                  4       '       g   R# VP                  4       p\        V R4      pVe_   \        V R4      ;_uu_ 4        V P                  '       d    RRR4       R#  RRR4        \	        V! V4      4      pV'       d   RV n        V# \        V RR4      '       dp   V P                  V4      pV'       dU   \        V R	R4      p\        V R
R4      pVe7   Ve3   V;_uu_ 4        \        V4      pRRR4       X F  p\        V4       K  	  V# \        V RR4      p	\        V R4      ;_uu_ 4        V	e   V	P                  4       '       g    RRR4       R# \        V RR4      p
V P                  '       d   V
'       g    RRR4       R# V
'       d   V
 RV 2MTV n        RV n        RV n        RV n        RRR4       \        V RR4      pVe   \#        RV4       RV n        MRV n        \'        V RR4       R#   + '       g   i     EL�; i  \         d    \        P                  RRR7        R# i ; i  + '       g   i     ELK; i  + '       g   i     Lœ; i)a‡  Redirect the active turn without converting it into a new task: during a model request only that
request is cancelled (completed messages kept, partial reasoning becomes assistant context, the
correction is appended as a real user message, the loop retries); during tool execution it degrades
to ``steer()``; Codex app-server uses native ``turn/steer``. False when no live turn / empty text.FÚrequest_steerNr‚   Tz"Codex app-server turn/steer failedr/   Ú_executing_toolsrU   rV   Ú_model_request_activer�   z

[Additional user correction]
rŽ   Úredirect_abortz$Failed to abort request for redirect)r   rK   r>   rr   r+   rt   r3   r4   r5   r   r±   rW   Ú_request_yieldÚis_setrC   r�   rs   rX   r�   rP   )rx   r«   r¯   Ú_native_steerÚacceptedrZ   r[   r\   r]   Ú_model_activer°   rŽ   s   &&          r   ÚredirectÚInterruptControlMixin.redirect  s&  € ÷
 ˜4Ÿ:™:Ÿ<š<ÙØ—*‘*“,ˆä(¨¨Ó?ˆØÒ$Ü˜$Ð 8×9Õ9Ø×,×,Ð,Ø ÷ :Ñ9Ø,÷ :ðÜ¡¨gÓ 6Ó7�ßØ15�DÔ.Ø�ô �4Ð+¨U×3Ò3Ø—z‘z 'Ó*ˆHßÜ! $Ð(>ÀÓE�Ü& tÐ-HÈ$ÓO�ØÒ&¨<Ò+Cß%šÜ&*¨7£m˜÷ &ã*˜Ü& sÖ+ñ  +àˆOä Ð&=¸tÓDˆÜ�dÐ4×5Õ5ØÒ$¨M×,@Ñ,@×,BÒ,BØ÷ 6Ñ5ô   Ð&>Ð@SÓTˆHØ×(×(Ð(·Ø÷ 6Ñ5÷ MU�8�*Ð>¸w¸iÑHÐZað Ô"ð )-ˆDÔ%Ø&*ˆDÔ#Ø)-ˆDÔ&÷ 6ô  ' tÐ-CÀTÓJÐØÒ+Ü˜4Ð!5Ô6Ø49ˆDÕ1à48ˆDÔ1Ü  Ð'7Ð9_Ô`Ù÷e :×9Ð9ûô ô Ü—‘ÐAÈD�ÔQÚðú÷ &Ÿ˜ú÷ 6×5úsT   ÁHÁ=!H Ã7IÅIÅIÅ(&IÆIÆIÆ"#IÈH	È"IÉIÉI	ÉI)	c                ó    <€ V ^8„  d   QhRS[ /# r   rS   )r   rg   s   "€r   r   rh   W  s   ø€ ÷ Wñ W¡tñ Wr   c           	     ó”   € \        V R4      ;_uu_ 4        \        \        V RR4      4      uuRRR4       #   + '       g   i     R# ; i)z@Return whether an active-turn redirect is waiting to be applied.r‚   r�   N)r>   r+   rC   )rx   s   &r   Ú_has_pending_redirectÚ+InterruptControlMixin._has_pending_redirectW  s2   € ä�dÐ4×5Õ5Üœ Ð'?ÐATÓUÓV÷ 6×5×5Ó5ús	   •6¶A	c                ó0   <€ V ^8„  d   QhRS[ S[,          /# r   r   )r   rg   s   "€r   r   rh   \  s   ø€ ÷ ñ ©±#­ñ r   c                ó�   € \        V R4      ;_uu_ 4        \        V RR4      pRV n        RRR4       V#   + '       g   i     X# ; i)z5Return and clear pending active-turn correction text.r‚   r�   N)r>   rC   r�   ©rx   r«   s   & r   Ú_drain_pending_redirectÚ-InterruptControlMixin._drain_pending_redirect\  sD   € ä�dÐ4×5Õ5Ü˜DÐ":Ð<OÓPˆDØ%)ˆDÔ"÷ 6ð ˆ÷ 6Ö5ð ˆúó	   •4´A	c                ó0   <€ V ^8„  d   QhRS[ S[,          /# r   r   )r   rg   s   "€r   r   rh   c  s   ø€ ÷ ñ ¡h©s¥mñ r   c                ó�   € \        V R4      ;_uu_ 4        \        V RR4      pRV n        RRR4       V#   + '       g   i     X# ; i)zXReturn the pending steer text (if any) and clear the slot; None when nothing is pending.r¢   r¦   N)r>   rC   r¦   rÆ   s   & r   Ú_drain_pending_steerÚ*InterruptControlMixin._drain_pending_steerc  sD   € ä�dÐ1×2Õ2Ü˜DÐ"7Ð9IÓJˆDØ"&ˆDÔ÷ 3ð ˆ÷ 3Ö2ð ˆúrÉ   )rs   rr   r�   r�   r¦   r   rƒ   rt   )N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r’   r�   r§   r±   r¾   rÂ   rÇ   rÌ   Ú__static_attributes__Ú__classdictcell__)rg   s   @r   r`   r`   }   s“   ø‡ € ÙcñfØDIðfà%)ðfàOS÷fó fñPbÐ\`÷ bó bð¸5ð ÐV[÷ ò ÷:ð ÷=ð =÷~Wð W÷
ð ÷ö r   r`   )rÒ   r;   Úloggingr£   Útypingr   Úagent.interrupt_compatr   Útools.interruptr   r¹   r   rX   Ú	getLoggerr4   rŠ   r‹   rŒ   Ú	frozensetr   r   r!   r'   r7   r>   rC   rK   rP   r^   r`   rl   r   r   Ú<module>rÛ      s–   ðñó
 Û Û Ý å 9Ý ;Ý ;ð 
×	Ò	˜;Ó	'€ð
 .Ð Ø/Ð Ø)Ð Ù"Ð$5Ð7JÐLbÐ#cÓdÐ õ1õ
?õaõ5õ&>õ õ0õ5õ÷&kó kr   